On Tue, Mar 9, 2010 at 12:41 PM, Bryan R Harris
<bryan_r_har...@raytheon.com> wrote:
>
>
> Much to my chagrin I realized this morning that this notation:
>
>    while(<FILE>) {
>
> evaluates as:
>
>    while(defined($_ = <FILE>)) {
>
> ... and NOT as:
>
>    while(defined(local $_ = <FILE>)) {
>

so how about while (my $line = <FILE>) instead of using $_?


-- 
Jeff Peng
Email: jeffp...@netzero.net
Skype: compuperson

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to