Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: tweaking of perldoc function (sorting/preserving order)by lodin (Hermit) |
on Jan 18, 2008 at 20:47 UTC ( [id://663138]=note: print w/replies, xml ) | Need Help?? |
List::Compare doesn't necessarily preserve any order. The default behaviour is simply to sort the lists by Perl's default sort order. Without sorting no promise about ordering is given. Keeping original order is what the OP asks for (dispite the title), so List::Compare is unfortunately not a reliable solution. lodin
In Section
Seekers of Perl Wisdom
|
|