1. Save the script as quotes.pl in the PERLSCRIPTS folder.

    Here’s what the relevant lines in this script do:
  • print "<p>Which one of our $cars_on_lot cars is right for you?</p>\n";

    By using “double quotes” in the above print statement, the number assigned to the scalar variable $cars_on_lot (100) is printed to the browser window.

  • print '<p>Which one of $cars_on_lot is right for you?</p>\n';

    By using ‘single quotes’ in the above print statement, the text $cars_on_lot is printed to the browser window along with the words that surround it.

  1. Upload quotes.pl to the perlscripts directory on the Web server, then set its permissions so that anyone can execute it.
  2. Open perllinks.html and insert a new link to quotes.pl:

    <p><a href="http://www.yourwebsite.com/cgi-bin/perlscripts/quotes.pl">6. Double vs. single quotes.</a></p>
  3. Save perllinks.html, then upload it to the home directory in your Web site.