Pete Sergeant wrote:
> 
> How do I insert $scalar into position $x of @array, where $x is smaller than
> $#array?

E.g.:
@primes = (1, 2, 3, 5, 11, 13);   # oh, I forgot one
@primes = (@primes[0..3], 7, @primes[4..$#primes]);

Greetings,
Andrea

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to