Without references: use globs like this - foo(*FH). Then in "foo" you just use my $fh = shift; And $fh can be plugged in like a file-handle, in "print", for example.
In reply to Re: File handle as argument
by spurperl
in thread File handle as argument
by palette
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |