in reply to Re: Bareword vs. Indirect Filehandle behaviour
in thread Bareword vs. Indirect Filehandle behaviour
Perl can't figure out what you mean (and imho ought not, anyways) ...
I was sort of hoping that it could figure out what I mean because I think the while (<IN>) {print OUT;} construct is one of the neater features of the language. If I substitute an indirect filehande for a bareword one I still mean it to be a filehandle and give the same behaviour. Adding the $_ is no big deal but the new behaviour breaks an idiom that I would guess is familiar to most and widely used.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Bareword vs. Indirect Filehandle behaviour
by rodion (Chaplain) on Sep 19, 2006 at 10:57 UTC | |
by chromatic (Archbishop) on Sep 19, 2006 at 17:01 UTC | |
by johngg (Canon) on Sep 19, 2006 at 11:04 UTC |