in reply to How do I get an array which is the logical AND of the elements of two other arrays?
Updated: and now that I actually read your code, I notice this problem:
my @A = [ '1', '2', '4', '8' ]; my @B = [ '1', '3', '6', '8' ];
The [...] you have here almost certainly isn't what you want. Try one of
my @a = qw/1 2 4 8/; my $a = [qw/1 2 4 8/]; # an arrayref
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I get an array which is the logical AND of the elements of two other arrays?
by ibanix (Hermit) on Mar 02, 2006 at 05:17 UTC |