Ordinarily you must assign the returned value to a vari­ able, but there is one situation where an automatic assignment happens. If and only if the input symbol is the only thing inside the conditional of a `while' state­ ment (even if disguised as a `for(;;)' loop), the value is automatically assigned to the global variable $_.