I think you are confusing the meaning of copying filehandles with that of copying the contents from one file to another.
I am guessing that it is the latter that you really want. I assume that myfunction returns either an open read handle or undef. In this case, you can do something like
my $in = myfunction(); if ( $in ) { print FILEHANDLE while <$in>; } else { # handle null-handle error; }
the lowliest monk
In reply to Re^3: return undef
by tlm
in thread return undef
by dwijew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |