On Sat, Nov 5, 2011 at 3:54 PM, Shawn H Corey <shawnhco...@gmail.com> wrote:

> On 11-11-05 02:40 PM, Brian Fraser wrote:
>
>>    See `perldoc readline`. $! will be undefined if no error occurs.
>>
>>
>> No.
>>
>
> $! will be undefined, not `undef`
>
>
That's silly. Perl has no spec -- You can't have undefined behavior. You
can tell exactly what's going to happen if you look at the source.

Also, a correction for my previous message: In the second example, you need
an "or say $!;" after the readline to trigger $! being set. Same with the
<> version.

Reply via email to