Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    say for sort {
        ($a =~ /([0-9]+)/)[0] <=> ($b =~ /([0-9]+)/)[0]
    } @unsorted_array;