our approach|new tutorials|contact us
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.
<< BACK
NEXT >>