Perl prints large chunks of code to standard out.
Here's the syntax:
print <<STOPTAG;
#stuff goes here
STOPTAG
This is the same as putting a print command before the text in the "#stuff goes here" block. It's pretty sweet.
Thanks to http://www.pageresource.com/cgirec/ptut4.htm.
Friday, August 7, 2009
Subscribe to:
Posts (Atom)