Your skill will accomplish what the force of many cannot |
|
PerlMonks |
•Re^6: Benchmark, -s versus schwartzianby merlyn (Sage) |
on Aug 23, 2004 at 19:28 UTC ( [id://385192]=note: print w/replies, xml ) | Need Help?? |
You can always do the GRT by using only the key...Uh, that's sometimes the hard part. Suppose you wanted to sort by a floating point number (say, age in days), then descending by a string of varying length that might have a NUL in it, and then descending by another integer (byte size). Quick, construct the GRT for that. Not easy, huh. Trivial in the ST. Yes, you can always get a single GRT string for a multilevel sort. But sometimes, as I said, it takes a frickin' genius. -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|