Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by QM (Parson)
on Apr 30, 2019 at 08:04 UTC ( #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
Node Status?
node history
Node Type: note [id://1233176]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2021-01-19 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?