in reply to Elegant way of destroying a list
But Adam, you say, I am scoping the array using my, I just wanted to reuse the array inside the same scope. Well, don't. But if you are just writing a hack, and good programming isn't part of it, then in that case, use undef, or set the array to an empty array, or set the index of the last element to -1.
$#arrayName = -1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Elegant way of destroying a list
by JojoLinkyBob (Scribe) on Jan 24, 2001 at 01:56 UTC |