On Tue, Mar 9, 2010 at 12:41 PM, Bryan R Harris <[email protected]> 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: [email protected] Skype: compuperson -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
