Perl Basics In Pictures
Basics
Variables
Numbers
Subroutines
Logic & Loops
Files
In the browser, go to:
www.yourwebsite.com/perllinks.html
Click the
Double vs. single quotes
link.
The output should look like this:
TIP:
Using single quotes (
‘
) with the
print
function
print
‘
<p>Which one of $cars_on_lot is right for you?</p>\n
’
;
prints literally everything in between the two quotation marks.
If you want to display the value of a variable, use double quotes (
“
):
print
“
<p>Which one of our $cars_on_lot cars is right for you?</p>\n
”
;
<< BACK
NEXT >>