my $out; open my $fh, '>', \$out or die "cant open variable\n"; select $fh; print1('foo'); # do some stuff print STDOUT $out;
In reply to Re: Collect prints to a string
by toolic
in thread Collect prints to a string
by vit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |