Cheers,sub subroutine { my $fh = shift; print $fh "Hello, filehandle!\n"; } my $dest; open my $fh, '>', \$dest; subroutine($fh); close $fh; print "\$dest is '$dest'";
In reply to Re: Can a string be a file hanle?
by CombatSquirrel
in thread Can a string be a file hanle?
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |