in reply to Re: Doubt on defined-ness
in thread Doubt on defined-ness
This isn't quite you had in mind, but not only did I find a case where <> returns an empty string, it does so before the last "line".
>perl -MData::Dumper -e"while (<{,0,a}>) { print Dumper $_ }" $VAR1 = ''; $VAR1 = '0'; $VAR1 = 'a';
A tied handle could do it too, say one that autochomps.
|
|---|