On Thu, Sep 27, 2001 at 08:31:33AM +0200, Andrea Holstein wrote:

> It's right, but not the Perl Way, I believe.
> A simple problem like inserting into the middle of arrays should be less
> than 15 lines.

Yes, you'd have thought Larry could have made something like that just a
little bit easier.

Oh!  Hold on.  How about

  splice @array, $position, 0, @stuff_to_insert;

Hmmm.  Maybe that would work?

[ perldoc -f splice ]

[ :-) where required by law ]

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

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

Reply via email to