Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Do the Splice Docs on Length Need Tweak?

by QM (Parson)
on Apr 30, 2019 at 08:04 UTC ( [id://1233176]=note: print w/replies, xml ) Need Help??


in reply to Re: Do the Splice Docs on Length Need Tweak?
in thread Do the Splice Docs on Length Need Tweak?

As usual when I post, what's obvious to me doesn't get written down. :/

I should have added:

Here's my use case:
splice(@array, 7, 0, qw(stuff I want to insert));

So if I want to insert something, but not remove anything, I need a length of zero.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found