Mega Code Archive

 
Categories / Perl / Language Basics
 

Assign a number to a single variable

#!/usr/bin/perl  print "Content-Type: text/html \n\n";  # The code below makes it easy to change numbers output by the script.  $cars_on_lot = 100;  print "<p>Welcome to <b>AUTO!</b></p>";  print "<p>Which one of our $cars_on_lot cars is  right for you?</p>\n";