[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: exists $foo[7] and delete $foo[7]
Tom Christiansen <tchrist@chthon.perl.com> writes:
>>>Will delete allow for
>>>
>>> delete $a[100];
>>> print scalar @a; # prints 0 ???
>
>>Yes, that's what it does.
>
>So, delete on an array doesn't actually do the same thing as
>pop/splice/shift would. I don't think that this won't confuse
>people. Do you not not think not either? :-)
You are confusing being confused and being de-un-confused (but note
that is distinct from being un-de-confused if you were initially
confused, but if you were originaly defused then you need to be con'ed).
--
Nick Ing-Simmons
- References to:
-
Tom Christiansen <tchrist@chthon.perl.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]