fizbin has asked for the wisdom of the Perl Monks concerning the following question:
However, I still need to be able to accept a simple filename if given one. So how do I determine what I've been passed, and then use the filehandle?
-- @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accepting either a filename or a handle
by shemp (Deacon) on Jun 18, 2004 at 21:04 UTC | |
|
Re: Accepting either a filename or a handle
by eyepopslikeamosquito (Archbishop) on Jun 19, 2004 at 00:47 UTC | |
|
Re: Accepting either a filename or a handle
by cchampion (Curate) on Jun 18, 2004 at 21:12 UTC | |
|
Re: Accepting either a filename or a handle
by runrig (Abbot) on Jun 18, 2004 at 22:39 UTC | |
|
Re: Accepting either a filename or a handle
by hv (Prior) on Jun 19, 2004 at 13:22 UTC | |
|
Re: Accepting either a filename or a handle
by belden (Friar) on Jun 19, 2004 at 20:25 UTC | |
|
Re: Accepting either a filename or a handle
by broquaint (Abbot) on Jun 21, 2004 at 03:57 UTC |