in reply to comparing two lists
you may get some milage out of this code. i grabbed it from the snippets section some time ago.
it's recycled from somewhere in the snippets section. also, you might want to look at:# Determining whether an item is in a list my @items = ('bbb', 'ddd'); my @list = ('aaa', 'bbb', 'ccc', 'ddd', 'eee'); foreach $item (@items) { if ({ map { $_ => 1 } @list }->{$item}) { print "Yes!\n"; } else { print "No!\n"; } }
~Particle
|
|---|