Friday, August 7, 2009

Perl Standard Out

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.