Do you know where your variables are? | |
PerlMonks |
Re^2: What does !$saw{$_}++ meansby Eimi Metamorphoumai (Deacon) |
on Jan 26, 2005 at 13:36 UTC ( [id://425203]=note: print w/replies, xml ) | Need Help?? |
I don't remember if it was quicker, but there also is the non-looped version:I haven't benchmarked it, but I've frequently heard it asserted that even faster is That is, using undef as your values (so you don't need the increment or to create the list of ones).
In Section
Seekers of Perl Wisdom
|
|