Help for this page

Select Code to Download


  1. or download this
    my @sorted = @list[
        map { unpack "N", substr($_,-4) }
        sort
    ...
            $key . pack "N", $_
        } 0..$#list
    ];
    
  2. or download this
    map {
        my $key = $list[$_];
        $key =~ s[(\d+)][ pack "N", $1 ]ge;
        $key . pack "N", $_
        } 0..$#list
    
  3. or download this
    my $key = $list[$_]
    $key =~ s[(\d+)][ pack "N", $1 ]ge;