in reply to insertion of array element
my @a = qw(a b c d); # 0 1 2 3 print "@a\n"; # a b c d splice @a, 2, 0, qw(ba bb bc); print "@a\n"; # a b ba bb bc c d
See what perlfunc has to say about splice.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: insertion of array element
by damian1301 (Curate) on Jun 03, 2001 at 07:56 UTC | |
by MeowChow (Vicar) on Jun 03, 2001 at 09:29 UTC |