|
|
| Welcome to the Monastery | |
| PerlMonks |
Re^3: Trap the error msg from Mime::Liteby Sidhekin (Priest) |
| on Jan 23, 2008 at 13:36 UTC ( #663783=note: print w/ replies, xml ) | Need Help?? |
|
What I need to do is capture those error(s), print a copy to stdout (which along with stderr is re-directed to my logfile) and save a copy in a variable that I can then use elsewhere. Right. I think I'd choose grep for that one. Replace my last line above with these:
Update: Oh, and "logfile"? Is this for production, not just testing? Then I'd definitely get Test::Trap version 0.1.0 — it fixes, among other things, a bug that in this case might slowly fill up your /tmp partition. Oops.
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||