Perl Monk, Perl Meditation | |
PerlMonks |
Re: Pair of itemsby tadman (Prior) |
on Jul 29, 2003 at 20:14 UTC ( [id://278966]=note: print w/replies, xml ) | Need Help?? |
Tweakism to get something like this:
You seem to create a hash and then just iterate over its keys, instead of just using the straight list. Here I just make one hash and use the other list raw. grep is used to produce a list of matches, which is then negated, so that it returns a true value if there are no matches.
In Section
Seekers of Perl Wisdom
|
|