in reply to Re: extracting redundant and unique items
in thread extracting redundant and unique items
I am not one for cargo cult programming. I honestly want to know why something is a better idiom for something than just doing it. With this said, I haven't thoroughly investigated this. I did do some benchmarks and the undef came out faster. Additionally, it makes sense that it isn't allocating any memory or doing any computation of the value.$hash{$thing}++; versus $hash{$thing} = undef;
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: extracting redundant and unique items
by AssFace (Pilgrim) on May 14, 2003 at 19:53 UTC |