#!/usr/bin/perl use strict; my @test_arrays = qw( a e b c ); my @check_arrays = qw( b a ); foreach my $i (@test_arrays) { print "Not found - $i\n" if ( !grep /$i/, @check_arrays ); }
In reply to Re: checking array elements aginst another array
by bichonfrise74
in thread checking array elements aginst another array
by coldy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |