Help for this page

Select Code to Download


  1. or download this
    print join ',', @arr[ @vals{ sort { $a <=> $b } keys %vals } ];
    
  2. or download this
    my @sorted_keys = sort { $a <=> $b } keys %vals;
    print join ',', @arr[ @vals{ @sorted_keys } ];