my $fh = ...; # Maybe a filehandle, maybe not... if ( eval { fileno $fh } ) { ...# Yes it is # ... } else { ...# No it isn't, with $@ having details... # }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Determining indirect filehandles
by chipmunk (Parson) on Jan 23, 2002 at 10:02 UTC | |
by Masem (Monsignor) on Jan 23, 2002 at 19:44 UTC | |
|
Re: Determining indirect filehandles
by ariels (Curate) on Jan 23, 2002 at 22:07 UTC | |
by Masem (Monsignor) on Jan 23, 2002 at 23:27 UTC | |
|
Re: Determining indirect filehandles
by jmcnamara (Monsignor) on Jan 24, 2002 at 03:38 UTC | |
|
Re: Determining indirect filehandles
by Anonymous Monk on Oct 30, 2015 at 08:34 UTC |