[EMAIL PROTECTED] wrote on 03/08/2006 11:52:39 
AM:
> Today's Topics:
>    5. Inserting into an array? ([EMAIL PROTECTED])
>    6. RE: Inserting into an array? (Brian Raven)
> ----------------------------------------------------------------------
> Message: 6
> Date: Wed, 8 Mar 2006 16:28:22 -0000
> From: "Brian Raven" <[EMAIL PROTECTED]>
> Subject: RE: Inserting into an array?
> To: <[email protected]>
> Message-ID:
>    <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
> 
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: 08 March 2006 15:06
> To: [email protected]
> Subject: Inserting into an array?
> 
> > It'd be nice if I could use File::Slurp to "burp" my processed file
> array back to disk, but there's a small 
> > snag. At some points, during some runs, new data would need to be
> inserted into the array, to mimic the current > process, which runs
> something like this... 
> 
> See 'perldoc -f splice'.
> 
> Or perhaps:
> 
> @array = @array[0..$n], @newstuff, @array[$n+1..$#array];
> 
> HTH
> 
> -- 
> Brian Raven 
If splice doesn't work, and you cant use a dynamic set up 
(db+perl/db+php/db+jsp/db+asp), then you should consider a short 
program/subroutine using the 
> @array = @array[0..$n], @newstuff, @array[$n+1..$#array];
since you will presumably need this often

-Josh

-----------------------------------------
PLEASE NOTE: 
SeaChange International headquarters in Maynard, MA is moving!
Effective March 1, 2006, our new headquarters address will be:

SeaChange International 
50 Nagog Park 
Acton, MA 01720 USA 

All telephone numbers remain the same: 
Main Corporate Telephone: 978-897-0100 
Customer Service Telephone: 978-897-7300

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to