Help for this page

Select Code to Download


  1. or download this
    #map BLOCK, LIST
    #or something like
    ...
    #or
    #map EXPR, LIST   
    @asciival=map(ord,@letters);
    
  2. or download this
    @origarray=('0 1 2','0 0 0','-3 -2 -1','10 11 12');
    @sortedarray=
    ...
    foreach(@sortedarray){
      print "$_\n";
    }
    
  3. or download this
    @sortedarray=
     map{$_->[0]}
    ...
              #calculate $computedsortval
              [$_,$computedsortval];
           } @origarray;