Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: deleting all the elements of an array

by archen (Pilgrim)
on Dec 14, 2001 at 04:59 UTC ( [id://131855]=note: print w/replies, xml ) Need Help??


in reply to deleting all the elements of an array

you can also clear an array by setting it's ending index to -1 like
$#table_cont = -1;
It's probably more intuitive to set it to an empty list though (as people have been saying)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-24 06:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found