As you have it written, the foreach loop is within the here doc. This is not what you want. End the here doc before the loop, then use the loop to print out the rest of the data.print SENDMAIL <<"EOM"; [snip] Sample from the firewall logs: EOM for (@fwlog) { [snip] print SENDMAIL $_; }
-Blake
In reply to Re: Foreach loop not working within Mail
by blakem
in thread Foreach loop not working within Mail
by dru145
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |