If and only if the line input operator is the only thing inside the conditional of a while loop, the value is automatically assigned to the special variable $_.After that some useful examples follow.
In reply to Re^3: <STDIN> not initializing $_
by carol
in thread <STDIN> not initializing $_
by carol
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |