Re: [solved but..] Push first 9 elements

2003-08-01 Thread David K. Wall
Janek Schleicher <[EMAIL PROTECTED]> wrote: John W. Krahn wrote at Thu, 31 Jul 2003 00:22:04 -0700: If you are just removing one element then you can use shift instead. And you are not really using $i it seems. for ( 0 .. @archivo - 4 ) { push @lista_final, shift @correos_p; push @list

Re: [solved but..] Push first 9 elements

2003-08-01 Thread Janek Schleicher
John W. Krahn wrote at Thu, 31 Jul 2003 00:22:04 -0700: > If you are just removing one element then you can use shift instead. > And you are not really using $i it seems. > > for ( 0 .. @archivo - 4 ) { > push @lista_final, shift @correos_p; > push @lista_final, shift @correos_h; >

Re: [solved but..] Push first 9 elements

2003-07-31 Thread John W. Krahn
Pablo Fischer wrote: > > Ohh I found > > Just to change the 8 to 1, and Im going to use one of each one, not 9 by 9. > > for($i=0; $i<($#archivo-2); $i++) { > push @lista_final, splice(@correos_p, 0, 1); > push @lista_final, splice(@correos_h, 0, 1); > push @lista_final, splice

Re: [solved but..] Push first 9 elements

2003-07-30 Thread Pablo Fischer
Ohh I found Just to change the 8 to 1, and Im going to use one of each one, not 9 by 9. for($i=0; $i<($#archivo-2); $i++) { push @lista_final, splice(@correos_p, 0, 1); push @lista_final, splice(@correos_h, 0, 1); push @lista_final, splice(@correos_y, 0, 1); push @lista_fi

Re: [solved but..] Push first 9 elements

2003-07-30 Thread Pablo Fischer
Thanks Steve! > for (whatever) { > push @lista_final, splice(@correos_p, 0, 8); > push @lista_final, splice(@correos_h, 0, 8); > push @lista_final, splice(@correos_y, 0, 8); > # etc... > } Thanks! Now my 'for' works very fast. Howerver, I could like to know.. for($

Re: [solved but..] Push first 9 elements

2003-07-30 Thread Steve Grazzini
On Thu, Jul 31, 2003 at 12:17:10AM +, Pablo Fischer wrote: > Hi! I solved it: > > for($i=0; $i<($#archivo-2); $i++) { > #print "FSF\n"; > for($j=0; $j<9; $j++) { > push(@lista_final, $correos_p[$j]); > push(@lista_final, $correos_h[$j]); > push(@lista_final, $correos_

Re: [solved but..] Push first 9 elements

2003-07-30 Thread Pablo Fischer
Hi! I solved it: for($i=0; $i<($#archivo-2); $i++) { #print "FSF\n"; for($j=0; $j<9; $j++) { push(@lista_final, $correos_p[$j]); push(@lista_final, $correos_h[$j]); push(@lista_final, $correos_y[$j]); push(@lista_final, $correos_l[$j]); push(@lista_f

Re: Push first 9 elements

2003-07-30 Thread Pablo Fischer
Hi again; Sorry I forgot to said that when I finish to take the first 9 elements of arr7, I need to restart in the ARr1. thats Why I need to remove those elements. Thanks! El día Wednesday 30 July 2003 11:09 a Pablo Fischer mandó el siguiente correo: > Hi! > > I need to make an array of 3000 e

Push first 9 elements

2003-07-30 Thread Pablo Fischer
Hi! I need to make an array of 3000 elements, I have 7 arrays (sub-arrays?). I need to do this: Take first 9 of Arr1, push them to the BIG ARRAY and remove this 9 from the 'subarray' Take first 9 of Arr2, push them to the BIG ARRAY and remove this 9 from the 'subarray' Take First 9 of Arr3, pu