|There's more than one way to do things|
Re^3: $_ not set in while <>by LanX (Sage)
|on Jun 09, 2021 at 12:35 UTC||Need Help??|
> 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 ...
from https://perldoc.perl.org/perlsyn#For-Loops plus added my logic
is the same as this: