Try this. (untested)
This compares everything except the first 4 characters using the numeric comparision operator. <=>.foreach my $file (sort {substr($a,4) <=> substr($b,4)} keys %hash) { print "$key \n"; }
Examine what is said, not who speaks.
In reply to Re: Sorting Files with Numbers
by BrowserUk
in thread Sorting Files with Numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |