more useful options | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi
> In the above, a "my" variable cannot be defined and be used within the same comma statement or logical "and" statement, hence the "my $line;" before the loop conditional. In that case I'd prefer the c-style for(;;) loop ...
updatefrom https://perldoc.perl.org/perlsyn#For-Loops plus added my logic is the same as this:
Cheers Rolf In reply to Re^3: $_ not set in while <>
by LanX
|
|