Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: array manipulation

by Transient (Hermit)
on Jun 15, 2009 at 16:24 UTC ( #771711=note: print w/replies, xml ) Need Help??


in reply to Re: array manipulation
in thread array manipulation

I think biohisham means the index used in the offset for the splice function. But similarly,
perl -le 'my @arr = qw/1 2 3/; print "Removing ",splice(@arr,1,1), "\n +"; print join(" - ", @arr), "\n"'
Does show you that it is indeed 0-based (by default).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2020-07-07 18:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?