|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Seeking guidance for more idiomatic way of (re)writing this script.by Anonymous Monk |
| on Jan 15, 2013 at 11:03 UTC ( #1013357=note: print w/ replies, xml ) | Need Help?? |
|
is better written as
Besides that, you might want to try splitting the script's processing stages into well-named subroutines. It will help you reduce the amount of variables in the current scope, too. And perhaps rid of the temporary file -- I'm sure MIME::Lite can attach a "file" from a string variable.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||