use Sort::Key::Maker sort_int_str => sub { int $_, $_ }, qw(int str); my @sorted = sort_int_str @old;
updated: using a regular expresion like /(\d+)(.*)/ to extract the keys was slow!
In reply to Re^2: Sorting Alphanumeric Arrays
by salva
in thread Sorting Alphanumeric Arrays
by slloyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |