Perl: Printing Output
Printing Output
You can print output to the the screen (STDOUT) using the print() function
print("Hello world\n"); #print hello world, followed by a newline
As with most functions, the parenthesis are optional:
print "Hello world\n"; # same thing