in reply to Re: insertion of array element
in thread insertion of array element
Good post. If you wanted to get it in the middle of an array more that 4 indexes then you could make a slight adjustment to it to be more versatile.
Tiptoeing up to a Perl hacker.
Dave AKA damian
my @a = (a..g); print "@a\n"; splice @a, ($#a+1)/2, 0, (1..5); print "@a\n";
Tiptoeing up to a Perl hacker.
Dave AKA damian
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: insertion of array element
by MeowChow (Vicar) on Jun 03, 2001 at 09:29 UTC |
In Section
Seekers of Perl Wisdom