P
p cooper
Ive put the Mail::SendMail inot a subroutine and get a
sub mailsendmail{
my ($from, $to, $subject, $messagebody) = @_;
my @to_emails=qw([email protected] (e-mail address removed) (e-mail address removed));
foreach $to(@to_emails)
{ %mail = ( To =>$to,
From =>$from,
Message => $messagebody);
}
}
[Sun Jan 25 20:37:09 2004] aagbi.pl: Name "main::mail" used only once:
possible typo at ./aagbi.pl line 110.
How do I explicitly name a hash ( form the mail::SendMail package) inside
the subroutine?
sub mailsendmail{
my ($from, $to, $subject, $messagebody) = @_;
my @to_emails=qw([email protected] (e-mail address removed) (e-mail address removed));
foreach $to(@to_emails)
{ %mail = ( To =>$to,
From =>$from,
Message => $messagebody);
}
}
[Sun Jan 25 20:37:09 2004] aagbi.pl: Name "main::mail" used only once:
possible typo at ./aagbi.pl line 110.
How do I explicitly name a hash ( form the mail::SendMail package) inside
the subroutine?