[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: exists $foo[7] and delete $foo[7]
>>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? :-)
--tom
- Follow-Ups from:
-
Gurusamy Sarathy <gsar@ActiveState.com>
Nick Ing-Simmons <nick@ing-simmons.net>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]