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

Re: How do I delete a row of an array

by nimdokk (Vicar)
on Oct 09, 2003 at 09:20 UTC ( [id://297905]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to How do I delete a row of an array

I'm not quite sure what you mean, an array is a list containing elements. Do you want to remove one particular element from a list? Or are you talking about an Array of Arrays and need to delete one Array from the Array?

update: To remove an element from an array, take a look at the following code sample.

my @rray=qw(mercury venus earth mars jupiter saturn neptune uranus plu +to); print "\@rray contains: @rray\n"; print "Removing $rray[1]\n"; @new_array=splice(@rray,1,1); print "\@new_array now contains: @new_array\n"; print "\@rray now contains: @rray\n";


"Ex libris un peut de tout"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://297905]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.