This will accommodate the case when $seclar is ZeroNot needed:
$ perl -MO=Deparse -e 'while (my $scalar = <$TEST>) {1}' while (defined(my $scalar = <$TEST>)) { do { '???' }; } -e syntax OK
Relevant: To Kill a Meme: while(defined($line = <>))
In reply to Re^2: intersection of scalar with 1D array and 2D array Matlab=>Perl
by choroba
in thread intersection of scalar with 1D array and 2D array Matlab=>Perl
by f77coder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |