#!/usr/local/bin/perl5 ############################################################################## # This program demonstrates various ways of using the print() function # Perl functions can be called withe parenthases (): print("Hello World!\n"); # Or without parenthases: print "Hello World!\n"; # Lines do not automatically contain newlines ("\n"), so source code can span # multiple lines and multiple print statments, but still only print 1 line: print "Hello "; print "World!"; print "\n"; # Likewise, a single print statement can print multiple lines: print "Hello\nWorld\n!\n";