$Price = "5 rupees";
print <<EOF; # same as above
The price is $Price.
EOF
print <<"EOF"; # same as above
The price is $Price.
EOF
print << x 10; # null identifier is delimiter
Merry Christmas!
print <<`EOC`; # execute commands
echo hi there
echo lo there
EOC
#print <<FOO, <<BAR; # you can stack them
#I said foo.
#FOO
#I said bar.
#BAR
No comments:
Post a Comment