Your code, shown below, does not work the same way.
Are you sure?
>perl -MO=Deparse -e "while ($var = <fh>) { }" while (defined($var = <fh>)) { (); } -e syntax OK
In reply to Re^2: How to extract Start .. End from multiline file
by ikegami
in thread How to extract Start .. End from multiline file
by gasho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |