Not true, this should work:
use IO::Scalar; my $fh = IO::Scalar->new; print $fh "foo\n"; # Rather than $fh->print ... # or, if you prefer select $fh; print "bar\n";
This works through the magic of a tied file handle. See perltie for details on tying a file handle.
|Replies are listed 'Best First'.|
Re^4: in memory files in 5.6.1
by WolliK (Acolyte) on Apr 04, 2016 at 14:20 UTC