Something like this:
use strict; use warnings; my $buffer; open my $OUT, '>', \$buffer; print $OUT 'Some text'; close $OUT; print $buffer;
Prints:
Some text
In reply to Re: Writing to a file handle not attached to a file?
by GrandFather
in thread Writing to a file handle not attached to a file?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |