A couple of tips:
use Sort::Key::Natural qw( natkeysort ); my @sorted = natkeysort { tr|\\/|\0|r } @paths;
Of course, this still ignores case-insensitive volumes, as well as paths containing «.» and «..». But what can you do? (Well, «.» can be addressed, but there's no obvious solution if any exist for the rest.)
In reply to Re^2: Sorting path names with Sort::Key
by ikegami
in thread Sorting path names with Sort::Key
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |