in reply to RE (tilly) 3 (less?): A Not so Simple Append
in thread A Not so Simple Append
benefits of the array structure... you just make a new scalar and add a pointer to the end of the array with push. With unshift, you make a scalar, copy every pointer in the array over one, and stick the new pointer at the beginning.
PerlGuts Illustrated may help you see that. See Arrays.
--
$you = new YOU;
honk() if $you->love(perl)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE (tilly) 5 (less?): A Not so Simple Append
by tilly (Archbishop) on Oct 03, 2000 at 06:37 UTC |