in reply to Re^2: $_ not set in while <>
in thread $_ not set in while <>


> 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 plus added my logic

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery