in reply to Re: comparing two array
in thread comparing two array

print +(grep {/$elem/} @array) ? "Yes" : "No";
$ cat ./arr #!/usr/bin/perl my @arr = (100 .. 110); my $elem = 11; print +(grep { /$elem/ } @arr) ? 'Yes' : 'No'; $ ./arr Yes$

Hmm... You might want to reconsider your idea of equality :-)

--

See the Copyright notice on my home node.

Perl training courses