in reply to Re: Need to Create an Array of Differences
in thread Need to Create an Array of Differences
ther's a better way to use grep... my @difference = grep /^@a1/, @a2; #example of sub... my $difference = diff(\@a1,\@a2); sub diff { my @diff = grep /[^@{$_[0]}]/, @{$_1}; return \@diff; } Marco (nemux) Bye.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need to Create an Array of Differences
by Anonymous Monk on Dec 16, 2004 at 15:54 UTC | |
by xtype (Deacon) on Feb 08, 2005 at 16:49 UTC |