Help for this page

Select Code to Download


  1. or download this
    use List::MoreUtils qw/pairwise each_array/;
    
    ...
    while ( my ( $costs, $exp ) = $iter->() ) {
        printf "%10s %10s\n", $costs, $exp;
    }
    
  2. or download this
    pairwise
    
    ...
           ONE          1
           TWO          2
         THREE          3