On Tue, Oct 23, 2001 at 07:30:00AM +1000, Damian Conway wrote:
> To check for numericity of input, you'll write:
>
> $number = +<$fh>
> until defined $number;
>
> If you ignore the definedness, the C<undef> will just promote to zero
> in numeric contexts.
I'm confused. By the time $number sees the line from the filehandle,
it's already been nummified to 0. Does that mean we have "0 but
undefined" or something? Shouldn't it be:
$number = +($_ = <$fh>) until defined;
?
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]