in reply to Re^2: Working with a unkown number of arrays
in thread Working with a unkown number of arrays
seems vastly superior to this:foreach (readdir DIR) { # do stuff }
Why the added step?foreach (readdir DIR) { ... push(@array, $_); ... } foreach (@array) { # do stuff }
On a side note, I still stand by sorted hashes rather than arrays as the correct way to do this.
|
|---|