Open main menu

Biolecture.org β

Changes

2. Print 'Hello World!'

531 bytes added, 01:36, 7 December 2018
no edit summary
<p>Save a file called hello.pl with this one line:</p>
 
<pre>
# Prints the message using two different delimeters.<strong>print &quot;Hello, world!World\n&quot;;</strong></pre> <p>Make sure the Perl executable is on your path.</p> <p>Now type the following command at your command prompt:</p> <pre><strong>perl hello.pl</strong></pre> <p>If everything&#39;s OK, you should get the following output:</p> <pre><strong>Hello World</strong></pre> <p>If not, troubleshoot.</p> <p>&nbsp;</p> print qq<p><span style="font-size:18px"><strong>Reference</strong></span></p> <hr /><p>1. <a href=Did you say "http://www.troubleshooters.com/codecorn/littperl/perlhelo.htm">&quot;Hello?http://www.troubleshooters.com/codecorn/littperl/perlhelo.htm&quot;\n=;</prea></p>
Anonymous user