in reply to checking the matches

my %hash = map { split /#/ } @array2; for (@array1) { next if !exists($hash{$_}); print("$hash{$_} = $_\n"); }

Replies are listed 'Best First'.
Re^2: checking the matches
by psini (Deacon) on May 22, 2008 at 10:03 UTC

    Good, if you're sure that @array1 has no duplicated value.

    Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.

A reply falls below the community's threshold of quality. You may see it by logging in.