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
In reply to Re^2: Bareword vs. Indirect Filehandle behaviour
by johngg
in thread Bareword vs. Indirect Filehandle behaviour
by johngg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |