- or download this
@n = grep $_, @n;
- or download this
@n = grep defined, @n;
- or download this
@n = grep defined and length, @n;
- or download this
for(my $count = 0;
$count < @myarray; )
...
{ splice @myarray, $count, 1; }
else{ $count++ }
}
- or download this
my $count = -1;
...
No matter which of these I use, when I print out the array I get a han
+dful of "Use of uninitialized value at line 55". Anyone have any sug
+gestions as to why these little buggers won't go away?