Help for this page

Select Code to Download


  1. or download this
    use Sort::Key qw(nkeysort);
    use Data::Dumper;
    my %hash = ( 1 => [ 51, 'a2'], 2 => [42, 'a1'] );
    my @res = nkeysort { $_->[0]} (values %hash);
    print Dumper(\@res);
    
  2. or download this
    $VAR1 = [
              [
    ...
                'a2'
              ]
            ];