You can use a lexical scalar in place of a bareword filehandle:
and then you can store that $fh in your blessed thingy and do what you will with it later:my $fh; open $fh, $path_to_file;
print $fh "Test";
/J\
In reply to Re: Passing filehandles
by gellyfish
in thread Passing filehandles
by j.goor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |