[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: exists $foo[7] and delete $foo[7]



>Stop!

>You can't be serious, splice changes half of your keys. There's no
>equivalent with hashes.

Of course I'm serious.  Remember, indices aren't keys.  They're just
positions.  splice completely removes an entry from an array in a way 
that undef will not, just as delete completely removes an entry from a
hash the way that undef will not.

Now, could someone please tell me what to fill in for XXXXX?

--tom


Follow-Ups from:
Larry Wall <larry@wall.org>
Larry Wall <larry@wall.org>
"Matthias Urlichs" <smurf@noris.net>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]