gets translated into while( defined( local $_ = COND ) ) {.
Not quite. The $_ variable is NOT localized in a while loop:
$ echo "one two three four five six seven eight nine ten" | perl -e' while ( <> ) { last if /seven/; } print "$.: $_\n"; ' 7: seven
In reply to Re^2: using multiple conditionals in a while(test)
by jwkrahn
in thread using multiple conditionals in a while(test)
by How09
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |