Jim Gibson wrote:
On 4/9/12 Mon Apr 9, 2012 12:22 PM, "Tiago Hori"<tiago.h...@gmail.com>
scribbled:
Hey Jim,
Makes perfect sense now. Thanks.
Just so I make sure I understand it correctly: So every time I use a while
(<FILEHANDLE>) loop each line of input from the file gets assigned to $_ in
each iteration of the loop?
Almost.
<> is an operator. Each time<FILEHANDLE> is evaluated, a line is read from
the file and assigned to the $_ variable. This is regardless of whether or
not<FILEHANDLE> appears in the condition of a while statement.
Untrue. Try it yourself and see.
John
--
Any intelligent fool can make things bigger and
more complex... It takes a touch of genius -
and a lot of courage to move in the opposite
direction. -- Albert Einstein
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/