RE: Help with array

2011-09-07 Thread Barry Brevik
The Camel book seems to say that splice will only remove or change elements and move them *down* if necessary. You must think I'm a raging newb, but I gotta admit, I've never used splice. Thanks, I'll check it out! Barry Brevik > -Original Message- > From: perl-win32-users-boun...@listse

RE: Help with array

2011-09-07 Thread Tobias Hoellrich
perldoc -f splice Cheers - Tobias -Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Barry Brevik Sent: Wednesday, September 07, 2011 11:38 AM To: perl-win32-users@listserv.ActiveState.com Su

Help with array

2011-09-07 Thread Barry Brevik
I've issued perldoc-q array and Googled for an answer and found nothing. Let's say I have an array with a number of elements in it, and I want to insert an element somewhere in the body of the array, and move all remaining elements up (or to the right, or higher) by one. Sure, I could use a loop,