Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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??


in reply to Re: How do I completely remove an element from an array?
in thread How do I completely remove an element from an array?

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 exploiting the Monastery: (3)
As of 2023-10-04 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?