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
In reply to Re: Create a list from an Arrray
by davido
in thread Create a list from an Arrray
by WorkerBee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |