With recent perls you can open a filehandle to a scalar:
/J\my $out = ''; + open OUTH, '>', \$out; + my $var = 'world'; format OUTH = Hello @>>>>>>>>>>>>>>> $var . write OUTH; + print $out;
In reply to Re: Perl formats without file handles
by gellyfish
in thread Perl formats without file handles
by m-rau
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |