in reply to (ar0n) Re: Filehandles and Arrays
in thread Filehandles and Arrays
I played around with this some, and noticed that if you're reading a file off of the command line already (at least in the situations I could test) it doesn't work. Which, in my view, it should, owing to local and all. Specifically, it keeps right on reading off of the file specified on the command line, try as I might (by localizing @ARGV and $ARGV and even *ARGV, which was probably a bad idea) to dissuade it.
Can any kind, wise, helpful monks explain why and when this will and won't work? It's a neat trick in any case, but if it could be worked as a general file-slurper without the baggage, it'd be even cooler.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Filehandles and Arrays
by tye (Sage) on May 08, 2001 at 07:09 UTC | |
by ChemBoy (Priest) on May 08, 2001 at 19:21 UTC | |
by tye (Sage) on May 08, 2001 at 19:07 UTC |