> 
> 
>> 
>>         foreach $line (<LOGFILE>) {
> 
> while (my $line = <$logfile>) would be a better idea than foreach $line.
> 

Just curious for an explanation to this. I tend to use foreach too. Don't they 
both accomplish the same thing? :)

-- 
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