Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How do I reset an array?

by indigo (Scribe)
on Apr 10, 2001 at 23:06 UTC ( [id://71450]=note: print w/replies, xml ) Need Help??


in reply to How do I reset an array?

Depends what you mean by reset. To clear it:
@array = ();
To restore to its old value:
@save = @array; for (@array) { # Loop stuff } @array = @save;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (10)
As of 2024-04-18 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found