while (my $foo = <BAR>) { # use $foo }
is also much more idiomatic, which makes your code more readable to other perl programmers.
In reply to Re: Trying to read a filehandle inside a loop
by DapperDan
in thread Trying to read a filehandle inside a loop
by roik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |