On Sep 25, birgit kellner said:

>Is there a simpler way than this to remove the last n elements of an array 
>and to reassign same array to the remainder?

You probably want to do:

  splice @array, 0, @array - 3;

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


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

Reply via email to