>%hash in scalar context should return what scalar(keys(%hash)) >currently does. But %hash->BUCKET_USE() should return what's currently there. And a simple boolean (read: don't care) use shouldn't waste time looking for keys, really, but should be internally optimized to do the current reasonable thing. Which your suggestion would also boil down to, but for efficiency, this should be pre-boiled. --tom
- Idea: minor %hash changes Nathan Torkington
- Re: Idea: minor %hash changes Tom Christiansen
- Re: Idea: minor %hash changes Nathan Torkington
- Re: Idea: minor %hash changes Tom Christiansen
- Re: Idea: minor %hash changes Tom Christiansen
- Re: Idea: minor %hash changes Tom Hughes
- Re: Idea: minor %hash changes Nathan Torkington
- Re: Idea: minor %hash changes Tom Hughes
- Re: Idea: minor %hash changes Jerrad Pierce
- Re: Idea: minor %hash changes Tom Hughes