in reply to •Re: stripping an array
in thread stripping an array

For variety, here's a solution that uses a kind of Schwartzian Transform (but grepping instead of sorting).
my %arr1_as_hash; @arr1_as_hash{@arr1} = (); my @arr3 = map { $_->[1] } grep { exists $arr1_as_hash{$_->[0]} } map { [ split /,/ ] } @arr2;

jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.