in reply to Splice not working or is it me?

#!/usr/bin/perl -w use strict; use warnings; my @array = qw( part1 part2 part3 part4 part5 part6 part7 part8 ); #remove part4 - which is $array[3], not $array[5]! splice @array, 3, 1; print @array;
BTW, does anyone else familiar with rope-making and sailing think that splice is exactly the wrong name for this function?

§ George Sherston

Replies are listed 'Best First'.
Re: Re: Splice not working or is it me?
by guha (Priest) on Sep 14, 2002 at 17:05 UTC

    Could it be referring to the 4 argument version of splice and that when you splice a rope to make a fixed loop for instance, you have to squeeze one part of the splitted rope back inbetween the rope itself??

    Just my 2 öre