On Thu, 21 Sep 2000, Tom Christiansen wrote:

> < Philip:
> 
> >    $seen{$word} = (exists $seen{$word}) ? 1 : $seen{$word} + 1;
> 
> er, flip that.

Er, yes. Thanks.

> Larry wrote (in Camel-3) that
> 
>     ...the autoincrement will never warn that you're using undefined values,
>     because autoincrement is an accepted way to define undefined values.
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> So I think you're safe there.

I'm glad about that -- it's a very convenient feature.

Having $seen{$word}++ turn $seen{$word} to undef is bad, if (undef)++
assumes NULL semantics everywhere, hence "one more than unknown" = "still 
unknown".

Cheers,
Philip
-- 
Philip Newton <[EMAIL PROTECTED]>

Reply via email to