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
In reply to Re: Re: extracting redundant and unique items
by Limbic~Region
in thread extracting redundant and unique items
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |