in reply to Re^2: Deleting specific array elements
in thread Deleting specific array elements
my $j = 0; for (my $i = 0; $i < @molecules; $i ++) { $molecules[$j++] = $molecules[$i] unless $molecules[$i] eq "\n"; } splice @molecules, $j;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Deleting specific array elements
by matrixmadhan (Beadle) on Nov 26, 2008 at 15:50 UTC | |
by JavaFan (Canon) on Nov 26, 2008 at 17:05 UTC | |
by matrixmadhan (Beadle) on Nov 27, 2008 at 03:15 UTC | |
by JavaFan (Canon) on Nov 27, 2008 at 10:37 UTC |