Help for this page

Select Code to Download


  1. or download this
    my @trip =   ("Chicago", "Saint Looey", "Joplin", "OKC", "Amarillo", "
    +Gallup",
                             "Flagstaff", "Winona", "Kingman", "Barstow", 
    +"San Bernandino", "LA" );
    map { printf  "%15s to %-15s\n", @trip[$_..$_+1]  } 0..$#trip-1;
    
  2. or download this
            Chicago to Saint Looey    
        Saint Looey to Joplin         
    ...
            Kingman to Barstow        
            Barstow to San Bernandino 
     San Bernandino to LA
    
  3. or download this
    subsequence(length=>3, step=>1, list=>\@trip);