Am Dienstag, 10. Mai 2005 11.46 schrieb Tielman Koekemoer (TNE):
> >> $counter2 = 0;
> >
> >What's that for? (never used)
>
> Hmm yeah sorry that was supposed to be $counter = 0;
>
> >Use push() to avoid holding the current array index.
>
> What do you mean by "holding the index"?

"remember (and incrementing) the current end index of @OPD01 in $counter"
(still can't recall the proper english for that)

joe

> >my @array1=(' ', 'a', '', 'b', "\0", 'c', undef, 'd', ' ', 'e'); my
>
> @new=grep {$_ and !/^\s+$/ and >!/^\0+$/} @array1; print join "\n",
> @new;
>
> Yes, that worked. Thanks very much.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to