Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Answer: How do I completely remove an element from an array?

by Bukowski (Deacon)
on Oct 19, 2002 at 10:45 UTC ( #206499=note: print w/replies, xml ) Need Help??

splice:

splice ARRAY, OFFSET, LENGTH, LIST

removes the elements designated by OFFSET and LENGTH and replaces them with the contents of LIST

Also you'd be wise not to forget delete which deletes an element (or a slice of elements) from a specified hash or array.

Bukowski - aka Dan (dcs@black.hole-in-the.net)
"Coffee for the mind, Pizza for the body, Sushi for the soul" -Userfriendly

  • Comment on Re: Answer: How do I completely remove an element from an array?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2022-01-24 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (64 votes). Check out past polls.

    Notices?