in reply to Re: Deleting specific array elements
in thread Deleting specific array elements
If your array is too big to copy it, try something like this:
for my $m (reverse 0 .. $#molecules) { if ($molecules[$m] eq "\n"){ splice (@molecules, $m, 1); } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Deleting specific array elements
by salva (Canon) on Nov 26, 2008 at 10:47 UTC | |
Re^3: Deleting specific array elements
by JavaFan (Canon) on Nov 26, 2008 at 10:47 UTC | |
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 |
In Section
Seekers of Perl Wisdom