in reply to Re^2: Bareword vs. Indirect Filehandle behaviour
in thread Bareword vs. Indirect Filehandle behaviour
For me, it would be quite confusing if Perl extended the idiom so that "print $outFH;" was a write of "$_" to a specified filehandle, rather than a write of a variable to STDOUT. I have no doubt Perl could get it right, because it knows what variables are file handles and what aren't. I'd just have trouble reading it without my eyes getting caught in the wrong mode; I'd have to mentally back-track each time I read it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Bareword vs. Indirect Filehandle behaviour
by chromatic (Archbishop) on Sep 19, 2006 at 17:01 UTC | |
|
Re^4: Bareword vs. Indirect Filehandle behaviour
by johngg (Canon) on Sep 19, 2006 at 11:04 UTC |