I can't make sense of your question. If myfunction() returns a filehandle, then it is out of place in an expression like
unless you want your output to look something like GLOB(0x1234567).print FILEHANDLE myfunction();
I think that what you want is something like
my $output_handle = myfunction(); if ( $output_handle ) { print $output_handle $whatever; } else { # deal with null-handle error }
the lowliest monk
In reply to Re: return undef
by tlm
in thread return undef
by dwijew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |