in reply to Re: Array Difference for Two Dimentional Array!
in thread Array Difference for Two Dimentional Array!
Thanks for your responce. I used the code:
my @diff; my @inter my %count2 = (); foreach my $element (@union,@ICUNAV) { $count2{$element}++; }; foreach my $element (keys %count2) { push @{ $count2{$element} > 1 ? \@inter : \@diff }, $element; }; print Dumper(@diff),"\n";
I have very little knowledge on perl. I have seen some examples on 1 dimensional array..however not on two dimensional array. Your knowledge will really help me here. Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Array Difference for Two Dimentional Array!
by swampyankee (Parson) on Jan 07, 2008 at 02:27 UTC | |
|
Re^3: Array Difference for Two Dimentional Array!
by NetWallah (Canon) on Jan 07, 2008 at 05:37 UTC |