in reply to Re: (ar0n) Re: Filehandles and Arrays
in thread Filehandles and Arrays
Well, I'm not who you asked for so feel free to ignore me. I've said it before and it works for me: my @lines= do { local *ARGV; @ARGV= $name; <> }; I have tested it while in the middle of using <> to read from files given on the command line and it read the lines from the named file and then the next <> resumed right where it had left off.
Perhaps you could post some code that demonstrates how it fails (as I was never completely sure that it was foolproof).
- tye (but my friends call me "Tye")
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re2: Filehandles and Arrays
by tye (Sage) on May 08, 2001 at 19:07 UTC | |
Re: (tye)Re: Filehandles and Arrays
by ChemBoy (Priest) on May 08, 2001 at 19:21 UTC |
In Section
Seekers of Perl Wisdom