Re: creating multiple variables in loop

2008-01-28 Thread Sonal Singhal
Thank you for your help! The Perl documents and mini-programs were great. Cheers, Sonal On Jan 24, 2008 9:25 PM, Sonal Singhal <[EMAIL PROTECTED]> wrote: > So, what I want to do is go through an existing array and break the array > into mini-arrays at any certain points (where the diff. in two b

Re: creating multiple variables in loop

2008-01-25 Thread Paul Lalli
On Jan 25, 12:25 am, [EMAIL PROTECTED] (Sonal Singhal) wrote: > So, what I want to do is go through an existing array and break the array > into mini-arrays at any certain points (where the diff. in two bordering > values are greater than 2000).  I programmed it as a recursive function, but > I nee

Re: creating multiple variables in loop

2008-01-25 Thread Rob Dixon
Sonal Singhal wrote: > So, what I want to do is go through an existing array and break the array into mini-arrays at any certain points (where the diff. in two bordering values are greater than 2000). I programmed it as a recursive function, but I need to store all these "mini-arrays" and be abl

Re: creating multiple variables in loop

2008-01-25 Thread Sonal Singhal
So, what I want to do is go through an existing array and break the array into mini-arrays at any certain points (where the diff. in two bordering values are greater than 2000). I programmed it as a recursive function, but I need to store all these "mini-arrays" and be able to sort them easily by

Re: creating multiple variables in loop

2008-01-23 Thread Jenda Krynicky
From: "Sonal Singhal" <[EMAIL PROTECTED]> > Simple question, I hope... I am looping through a set of commands, and each > time, I want to create a unique array with a tag representing the loop > number. > > for (my $j = 1; $j < $#start_points; $j++){ > if ( abs($start_points[0] - $start_

Re: creating multiple variables in loop

2008-01-23 Thread Tom Phoenix
On Jan 23, 2008 10:27 AM, Sonal Singhal <[EMAIL PROTECTED]> wrote: > I know I can do an array of arrays but that doesn't work well for the rest > of my program. You should really fix the rest of your program. There is more than one way to do it, but all the good ways use Perl as it's meant to be

creating multiple variables in loop

2008-01-23 Thread Sonal Singhal
Simple question, I hope... I am looping through a set of commands, and each time, I want to create a unique array with a tag representing the loop number. for (my $j = 1; $j < $#start_points; $j++){ if ( abs($start_points[0] - $start_points[$j]) > 1999) { my @{start_points."$n"