in reply to Compare two arrays

Why don't you post perl code?

Replies are listed 'Best First'.
Re^2: Compare two arrays
by kaushik9918 (Sexton) on Dec 05, 2014 at 08:05 UTC
    if ( @found = grep { $_ eq $element } @array ) { my $found = join ",", @found; print "Element exists\n"; }
    This is the code for elements found. But it doesn not work for equating elements "xyz*" with "xyz<1>" , "<xyz<2>" etc