Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Splice not working or is it me?

by George_Sherston (Vicar)
on Sep 14, 2002 at 12:34 UTC ( #197854=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://197854]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2019-07-23 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (24 votes). Check out past polls.

    Notices?