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.
In reply to Re^2: Build your array with push
by friedo
in thread Build your array with push
by PhilHibbs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |