Open main menu

Biolecture.org β

Print 'Hello World!'

Save a file called hello.pl with this one line:

<strong>print "Hello World\n";</strong>

Make sure the Perl executable is on your path.

Now type the following command at your command prompt:

<strong>perl hello.pl</strong>

If everything's OK, you should get the following output:

<strong>Hello World</strong>

If not, troubleshoot.

 

Reference


1. "http://www.troubleshooters.com/codecorn/littperl/perlhelo.htm"