in reply to comparing a string with lots of other strings
my @list1; my @list2; my %t; @t{@list2} = (); for ( @list1 ) { print "$_ found" if exists $t{$_}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: comparing a string with lots of other strings
by Tanktalus (Canon) on Jan 13, 2005 at 00:08 UTC |