in reply to Can a string be a file hanle?
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'";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can a string be a file hanle?
by JediWizard (Deacon) on Sep 26, 2004 at 23:14 UTC | |
by graff (Chancellor) on Sep 26, 2004 at 23:40 UTC | |
by ambrus (Abbot) on Sep 27, 2004 at 19:26 UTC | |
by JediWizard (Deacon) on Sep 27, 2004 at 20:28 UTC |