Mega Code Archive

 
Categories / Perl / String
 

Print with double vs single quotes

#!/usr/bin/perl  print "Content-Type: text/html \n\n";  # Printing with Double Quotes (") vs. Single Quotes (')  $cars_on_lot = 100;  print "<p>Welcome to <b>AUTO!</b></p>\n";  # double quotes  print "<p>Which one of our $cars_on_lot cars is right for you?</p>\n";  # single quotes  print '<p>Which one of $cars_on_lot is right for you?</p>\n';