in reply to Re: Build your array with push
in thread Build your array with push
I don't like the push way of constructing arrays.
You think that's bad, I once had to maintain a program that did this:
And so on for about 30 lines.my @array; $array[$#array] = "Hibbs"; $array[$#array] = "Daglish"; $array[$#array] = "Schwartz"; $array[$#array] = "Vroom"; ...
One of the few times I felt justified in regexing some code.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Build your array with push
by Roy Johnson (Monsignor) on Jan 31, 2006 at 20:26 UTC | |
by friedo (Prior) on Jan 31, 2006 at 21:31 UTC |