![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: Printing to a File from Subby suaveant (Parson) |
on Aug 27, 2010 at 14:56 UTC ( #857700=note: print w/replies, xml ) | Need Help?? |
Of course, if your code is OO you could also store the filehandle in the object to prevent the need for passing it around, even better create a method to retrieve the fh that created it on the first request. Perl filehandles when create as Corion exhibited can be passed around like any scalar, pretty much. Or you could even create a closure to handle all prints:
As always, TIMTOWTDI :)
In Section
Seekers of Perl Wisdom
|
|