in reply to redirect all output
File handles can be opened to "in memory" files held in Perl scalars via:Though if you try to re-open "STDOUT" or "STDERR" as an "in memory" file, you have to close it first:open($fh, '>', \$variable) || ..close STDOUT; open STDOUT, '>', \$variable or die "Can't open STDOUT: $!";
Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')
Don't fool yourself.
|
|---|