Then I guess I do not see the advantage of your module over something like:
#! perl -slw use strict; sub func{ my $arg = shift; my $fh; if( -e $arg ) { open $fh, '<', $arg or die $!; } else { $fh = $arg; } ## do stuff }
In reply to Re^7: Best way to check if something is a file handle?
by BrowserUk
in thread Best way to check if something is a file handle?
by tobyink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |