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")In reply to (tye)Re: Filehandles and Arrays
by tye
in thread Filehandles and Arrays
by bitswitch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |