1. Save the presidents.pl file, then close the text editor.
  2. Open a terminal window and type:

    cd programs

    then press ENTER.

    TIP: This Linux command has two parts:

    cd tells the computer to change directory.

    programs takes you to the programs directory.
  3. Type:

    perl presidents.pl

    then press ENTER to run the program.

    The program will query the us_presidents database on the MySQL Server and print out the results. Its output should look like this:

  4. Type:

    exit

    then press ENTER.