To display text on the console, print or say can be used. By default, print will not append a new line at the end of a string, thus it is common to see something like this.
print "Hello World\n";
say will automatically append a new line, thus there is no need to add the \n regex.
say "Hello World";
To use say, you must import the say feature.
use feature qw(say);