[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: exists $foo[7] and delete $foo[7]
On Thu, 13 Jan 2000 12:36:51 MST, Tom Christiansen wrote:
>>>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? :-)
I think it would confuse people who are willingly/easily confused,
yes.
Sarathy
gsar@ActiveState.com
- Follow-Ups from:
-
"Mark Mielke" <markm@nortelnetworks.com>
- References to:
-
Tom Christiansen <tchrist@chthon.perl.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]