Open main menu

Biolecture.org β

Print 'Hello World!'

Revision as of 01:40, 7 December 2018 by imported>SeoGaLam (Created page with "<p>Save a file called hello.pl with this one line:</p> <pre> <strong>print "Hello World\n";</strong></pre> <p>Make sure the Perl executable is on your path.</p> <p>N...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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"