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); } }
In reply to Re^2: Deleting specific array elements
by Crian
in thread Deleting specific array elements
by joec_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |