Difference between revisions of "Print 'Hello World!'"

From Biolecture.org
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...")
 
(No difference)

Latest revision as of 01:40, 7 December 2018

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"