If you are using perl 5.8 you can create a filehandle to a plain scalar.
open my $fh, ">:scalar:raw", \ my $stored_output or die "Couldn't open memory handle: $!"; print $fh "Hello world!"; print $stored_output;
In reply to Re: Virtual Filehandles..
by diotalevi
in thread Virtual Filehandles..
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |