laziness, impatience, and hubris | |
PerlMonks |
Re^2: Logical operations on arraysby Jenda (Abbot) |
on Oct 04, 2012 at 23:03 UTC ( [id://997342]=note: print w/replies, xml ) | Need Help?? |
There's no reason to work hard to set the values in the hash to ones, leave them undefined and use exists() within the grep{}. Also there is no reason to push the elements into the @intersection, just assign them.
Jenda
In Section
Seekers of Perl Wisdom
|
|