Welcome to the Monastery | |
PerlMonks |
Re: printing to STDOUT and a Logfile (cross-platform sub)by ybiC (Prior) |
on Oct 29, 2002 at 01:22 UTC ( [id://208650]=note: print w/replies, xml ) | Need Help?? |
Here's one cross-platform way to simultaneously print to STDOUT and a filehandle.
and you'd call it thusly: Phat props to mad monk Petruchio for showing me this a while back. cheers, Don striving toward Perl Adept (it's pronounced "why-bick")
Update2: consistant-ized scalar for logfile
In Section
Seekers of Perl Wisdom
|
|