perldoc -f splice

@array = (1, 2, 3, 4, 5);
splice(@array, 3, 1, 10);
print "@array";

1, 2, 3, 10, 5

Cheers,
Kevin

On Mon, Sep 24, 2001 at 03:08:09PM +0200, Pete Sergeant ([EMAIL PROTECTED]) said 
something similar to:
> How do I insert $scalar into position $x of @array, where $x is smaller than
> $#array?

-- 
[Writing CGI Applications with Perl - http://perlcgi-book.com]
I wrote a song about dental floss but did anyone's teeth get cleaner?
        -- Frank Zappa (to Tipper Gore's allegation that music influences
behavior)

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

Reply via email to