foreach $mol (@molecules) {
if ($mol eq "\n"){
splice (@molecules, scalar($mol),1);
}
}
So, i would like to delete any elements in @molecules (array created via split) that contain elements with just new lines in. When i run it, i get Argument "\n" isn't numeric in splice
Any help or advice appreciated
Thanks -- Joe.
In reply to Deleting specific array elements by joec_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |