Help for this page

Select Code to Download


  1. or download this
    $i = -1;
    while (<FILE>){  
    ...
       ($last[$i], $first[$i], $age[$i], $sex[$i], $height[$i], $weight[$i
    +]) = split/,/;
    }
    die "Sorry, no data\n" if $i == -1;
    
  2. or download this
    @alphabetical = sort @alphabetical
    
    ...
    @numerical = sort {$a <=> $b} @numerical;
    
    # to reverse the sort order reverse the positions of $a and $b, or use
    + reverse sort @a