By not using an ST in the first place. In practice I prefer something likeHow would you simplify/clarify the coding of ST?
It's also generally faster than an ST and degrades more gracefully, too.my @array = @array[ do { my @rank = map &sortkey_calc @array; sort { $rank[$a] <=> $rank[$b] } 0 .. $#array; } ];
Makeshifts last the longest.
In reply to Re: To use a module...or not.
by Aristotle
in thread To use a module...or not.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |