Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Splice not working or is it me?

by George_Sherston (Vicar)
on Sep 14, 2002 at 12:34 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://197854]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found