One of the things that popped up during yesterdays' perl class was the fact that STDIN
is treated the same as stdin
. For other filehandles, that's ofcourse not the case. I'm sure that's documented somewhere but I'm too lazy to check.
Re:Perl Class feedback : Lowercase filehandles
Beatnik on 2006-04-28T13:32:57
The perl class I tought a few days ago. I mean thatdoes exactly the same as$ perl -le'$f = <stdin>; print $f'
bla
blawhile a similar situation with a true filehandle doesn't work.$ perl -le'$f = <STDIN>; print $f'
bla
blaRe:Perl Class feedback : Lowercase filehandles
merlyn on 2006-05-01T19:42:39
in the Very Old Days of Perl, it was "stdin", "stdout", and "stderr". When you use these names in the main package, Perl pretends you wrote "STDIN", "STDOUT", or "STDERR", for backward compatibility.