in reply to Re^4: Perl delete function
in thread Perl delete function
You need to determine the size of the smaller array and restrict the loop accordingly.
my $size = @data1 < @data2 ? @data1 : @data2;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl delete function
by annel (Novice) on Dec 23, 2013 at 07:39 UTC |