in reply to How do I reset an array?
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 ???
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Too Brief?
by Mission (Hermit) on Apr 10, 2001 at 23:35 UTC |