you don't actually need to reset the array... if you are using split it will do it all by itself:
@array = split(/-/); # will create the new array @array # later on... @array = split(/-/); # will empty the array and create a new array @ar +ray with the new values
don't write code that doesn't do anything...
Update: did you say "substituting spaces..." and "using an array and split" ??? are you sure you're using the right(s///) command ???
In reply to Re: How do I reset an array?
by Chady
in thread How do I reset an array?
by Mission
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |