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]
Re: remove last n elements from array and return the rest
Jeff 'japhy/Marillion' Pinyan Mon, 24 Sep 2001 17:27:12 -0700
- remove last n elements from array and return... birgit kellner
- Jeff 'japhy/Marillion' Pinyan