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]>
- Re: RFC 263 (v1) Add null() keyword and fund... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword and ... iain truskett
- Re: RFC 263 (v1) Add null() keyword and ... Damien Neil
- Re: RFC 263 (v1) Add null() keyword and ... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword and fundamen... John Porter
- Re: RFC 263 (v1) Add null() keyword and fund... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword and fundamen... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword and fund... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword and fund... Philip Newton
- Re: RFC 263 (v1) Add null() keyword and ... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword and ... Philip Newton
- Re: RFC 263 (v1) Add null() keyword and ... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and ... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword and ... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and ... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword and ... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and ... John Porter
- Re: RFC 263 (v1) Add null() keyword and ... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword and ... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and fundamen... Paris Sinclair
- Re: RFC 263 (v1) Add null() keyword and fundamental data ... John Porter