The stupid question is the question not asked | |
PerlMonks |
Re: How do I print formatted text to a scalar instead of a filehandle?by shmem (Chancellor) |
on Jan 05, 2007 at 00:54 UTC ( [id://593050]=note: print w/replies, xml ) | Need Help?? |
Since Perl 5.8.0 you can open a filehandle for writing to a scalar. Then, if you make that filehandle the default, writes will go there. Content of $output:
Unfortunately, this doesn't seem to work with localized filehandles.
In Section
Seekers of Perl Wisdom
|
|