Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How do I reset an array?

by indigo (Scribe)
on Apr 10, 2001 at 23:06 UTC ( #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
Node Status?
node history
Node Type: note [id://71450]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2020-10-29 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (269 votes). Check out past polls.

    Notices?