Syntactic Confectionery Delight | |
PerlMonks |
Re: Schwartzian Transform vs. Building Hash of Function Results, Then Sorting on Function Resultsby merlyn (Sage) |
on Oct 16, 2006 at 19:27 UTC ( [id://578578]=note: print w/replies, xml ) | Need Help?? |
Consider sorting a list of objects that have a stringification overload and two of those objects stringify to the same string. With the ST, everything just works. With the hash method, the two objects collapse to the same hash entry.
-- Randal L. Schwartz, Perl hacker
In Section
Cool Uses for Perl
|
|