Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Sorting Outline Numbersby japhy (Canon) |
on Aug 10, 2005 at 18:53 UTC ( [id://482717]=note: print w/replies, xml ) | Need Help?? |
So long as the section numbers never go above 255, this should work fine:
It turns "4.2.1" into a three-byte string made of characters \x04, \x02, and \x01. It compares the outline numbers as strings of this form, and then expands them back to their numeral form.
In Section
Seekers of Perl Wisdom
|
|