Here's what the relevant lines in the script do:

  • @AcmeCars = ("Ford","Dodge","Chevy");

    Creates the array variable @AcmeCars and places the “Ford”, “Dodge”, and “Chevy” values into the array.

  • foreach $thisCar (@AcmeCars){

    foreach tells the Web server to “loop” through the @AcmeCars array, going through each value in the array, one by one.

    $thisCar is a scalar variable: it tells the Web server to pull out each separate element in the @AcmeCars array.