Help for this page

Select Code to Download


  1. or download this
    $i = 0;
    %L = map { $_ => $i++ } @L;
    @Ss = sort { $L{$a} <=> $L{$b} } @S;
    
  2. or download this
    @L = qw(one two three four five six seven eight);
    @S = qw(eight one five three);
    @Ss = qw(one three five eight);