|
|
| There's more than one way to do things | |
| PerlMonks |
Re^2: Logical operations on arraysby Jenda (Monsignor) |
| on Oct 04, 2012 at 23:03 UTC ( #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
|
|
||||||||||||||||||||