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