See readline. If the filehandle (or STDIN in your case) gets closed, readline returns undef.
Your loop is easier written in Perl as:
while( <> ) { last unless /\S/; print FILE; };
In reply to Re: uninitialized value $_
by Corion
in thread uninitialized value $_
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |