On Oct 3, Mason, Andrew said: >Say I have an array @array = ( 1, 2, 3, 4, 5) > >I know I want to remove the second value, $array[2]. How should I do >this?
You want splice(). splice @array, $offset, $length, @replacement; In your case, $offset is 2, $length is 1, and there is no @replacement. splice @array, 2, 1; For more, read: perldoc -f splice -- 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]