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_final, $correos_t[$j]);
        push(@lista_final, $correos_s[$j]);
        push(@lista_final, $correos_o[$j]);
#       print $correos_p[$j]."\n";
    }
    splice(@correos_p,0,8);
    splice(@correos_h,0,8);
    splice(@correos_y,0,8);
    splice(@correos_l,0,8);
    splice(@correos_t,0,8);
    splice(@correos_s,0,8);
    splice(@correos_o,0,8);
}

Correct?

And now, How can I remove duplicate elements from a list or array. I know that 
this answer its in perldoc -q duplicate, but I didnt understand the doc.

Some examples?

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 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, push them to the BIG ARRAY and remove this 9 from the
> 'subarray'
> Take First 9 of Arr4, push them to the BIG ARRAY and remove this 9 from the
> 'subarray'
> Take First 9 of ARr5, push them to the BIG ARRAY and remove this 9 from the
> 'subarray'
> Take First 9 of Arr6, push them to the BIG ARRAY and remove this 9 from the
> 'subarray'
> Take First 9 of Arr7, push them to the BIG ARRAY and remove this 9 from the
> 'subarray'.
>
> How can I do this? does push and pop allows me to choose the first 9
> elements and push them?
>
> Thanks!
> Pablo
> --
> Pablo Fischer Sandoval ([EMAIL PROTECTED])
> http://www.pablo.com.mx
> http://www.debianmexico.org
> GPG FingerTip: 3D49 4CB8 8951 F2CA 8131  AF7C D1B9 1FB9 6B11 810C
> Firma URL: http://www.pablo.com.mx/firmagpg.txt

-- 
Pablo Fischer Sandoval ([EMAIL PROTECTED])
http://www.pablo.com.mx
http://www.debianmexico.org
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131  AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt

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

Reply via email to