sasrs99 has asked for the wisdom of the Perl Monks concerning the following question:
sub ReportThreshholdExceeded { LogMsg("Running ReportThreshholdExceeded"); my $msg = <<END_OF_BODY; The number of SKUs that have been flagged as DeleteMe is greater than +the threshold of $threshold and thus Manager approval is required. Here is the list of SKUs and their counts: PLANNERCODE\tDEALER\tCOUNT ================================= << THIS IS WHERE I WANT TO PRINT THE ARRAY ELEMENTS>> END_OF_BODY my $address = "ssmith\@xyz.com"; open(MAILER, "| mailx -s \"Manager Approval Required for DeleteMe +flagged SKUs on $instance\" $address") or warn("Couldn't start mailx: $!\n"); print MAILER $msg; # send the mail close(MAILER); LogMsg("Email sent"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Print array from here-doc
by johngg (Canon) on Apr 25, 2007 at 22:30 UTC | |
by shigetsu (Hermit) on Apr 25, 2007 at 22:48 UTC | |
by johngg (Canon) on Apr 25, 2007 at 22:54 UTC | |
by sasrs99 (Acolyte) on Apr 25, 2007 at 23:00 UTC | |
|
Re: Print array from here-doc
by jZed (Prior) on Apr 25, 2007 at 19:29 UTC | |
by sasrs99 (Acolyte) on Apr 25, 2007 at 19:53 UTC | |
by shmem (Chancellor) on Apr 25, 2007 at 21:32 UTC | |
by johngg (Canon) on Apr 25, 2007 at 22:42 UTC | |
by jZed (Prior) on Apr 25, 2007 at 19:55 UTC | |
by sasrs99 (Acolyte) on Apr 25, 2007 at 20:41 UTC | |
by sasrs99 (Acolyte) on Apr 25, 2007 at 20:31 UTC | |
|
Re: Print array from here-doc
by akho (Hermit) on Apr 25, 2007 at 21:04 UTC | |
by sasrs99 (Acolyte) on Apr 25, 2007 at 21:10 UTC | |
by akho (Hermit) on Apr 25, 2007 at 21:15 UTC | |
by sasrs99 (Acolyte) on Apr 25, 2007 at 21:22 UTC | |
by akho (Hermit) on Apr 25, 2007 at 21:30 UTC | |
|