in reply to Create a list from an Arrray
You want to know which entries are in both lists:
my %matched; @matched{@STATIClist} = (); print "Valid tags:\n"; print "\t$_\n" for grep { exists $matched{$_} } @USERlist;
If you want to store the list...:
my @valid_tag = grep { exists $matched{$_} } @USERlist;
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Create a list from an Arrray
by Skeeve (Parson) on Jul 16, 2013 at 18:26 UTC |