Difference between revisions of "Starting Perl"

From Biolecture.org
imported>Joowon Yoon
(Created page with "<p>1. We can <a href="https://www.activestate.com/activeperl">downlad Activeperl</a> for Windows.</p> <p>2. Let's make simple code for printing "Hello World!" in p...")
 
imported>Joowon Yoon
 
Line 9: Line 9:
  
 
<p>print &quot;Hello, World!\n&quot;;</p>
 
<p>print &quot;Hello, World!\n&quot;;</p>
 +
 +
<p><img alt="" src="/ckfinder/userfiles/images/note.PNG" style="height:153px; width:313px" /></p>
  
 
<p>3. Save the file with &quot;Hello.pl&quot;&nbsp; &nbsp; &nbsp; #&nbsp;In my case, I saved it in folder &quot;perl&quot; in &quot;E drive&quot;. The file directory is &quot;E:\perl&quot;</p>
 
<p>3. Save the file with &quot;Hello.pl&quot;&nbsp; &nbsp; &nbsp; #&nbsp;In my case, I saved it in folder &quot;perl&quot; in &quot;E drive&quot;. The file directory is &quot;E:\perl&quot;</p>
  
 
<p>4. Run &quot;cmd&quot;</p>
 
<p>4. Run &quot;cmd&quot;</p>
 +
 +
<p>&nbsp;</p>
  
 
<p>5. Find file directory and lern &quot;Hello.pl&quot; like my example</p>
 
<p>5. Find file directory and lern &quot;Hello.pl&quot; like my example</p>
  
 
<p><img alt="" src="/ckfinder/userfiles/images/run.PNG" style="height:190px; width:436px" /></p>
 
<p><img alt="" src="/ckfinder/userfiles/images/run.PNG" style="height:190px; width:436px" /></p>

Latest revision as of 16:41, 26 October 2018

1. We can downlad Activeperl for Windows.

2. Let's make simple code for printing "Hello World!" in perl.

Open a Notepad and type these:

use strict;
use warnings;

print "Hello, World!\n";

3. Save the file with "Hello.pl"      # In my case, I saved it in folder "perl" in "E drive". The file directory is "E:\perl"

4. Run "cmd"

 

5. Find file directory and lern "Hello.pl" like my example