Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: What does !$saw{$_}++ meansby ikegami (Patriarch) |
on Jan 26, 2005 at 17:06 UTC ( [id://425285]=note: print w/replies, xml ) | Need Help?? |
but there also is the non-looped version: Except that x is a loop operator, just like map. In fact, it not only loops for the number of duplications, it also implicitely loops over each element of the list on the LHS. @saw{@in} and keys(%saw) are also loops, but they are implicit unlike x. In fact, you can remove two of the four loops of your "non-looped version":
Update: undef %saw is also an implicit loop, on calls other than the first.
In Section
Seekers of Perl Wisdom
|
|