in reply to return undef
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: return undef
by dwijew (Initiate) on May 23, 2005 at 02:49 UTC | |
by ysth (Canon) on May 23, 2005 at 02:57 UTC | |
by tlm (Prior) on May 23, 2005 at 02:55 UTC | |
by dwijew (Initiate) on May 23, 2005 at 03:00 UTC | |
by tlm (Prior) on May 23, 2005 at 03:04 UTC | |
by holli (Abbot) on May 23, 2005 at 05:03 UTC |