in reply to Pop/shift/delete on array
The push and pop functions act at the high-index end of an array. Shift and unshift act on the low-index end.
The delete operator doesn't really belong in the list. It removes pairs from a hash, but on an array it only undefines the value of an element. For arrays, splice is the corresponding operator.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pop/shift/delete on array
by betterworld (Curate) on Jul 14, 2005 at 16:07 UTC | |
|
Re^2: Pop/shift/delete on array
by revdiablo (Prior) on Jul 14, 2005 at 16:39 UTC |