1. Download Perl Distributions (the latest version is perl-5.16.1.tar.gz) from here.
2. Decompress the perl-5.16.1.tar.gz into your local disk
tar -xvf perl-5.16.1.tar.gz
3. Install the Perl package in your computer:
cd perl-5.16.1
./Configure -des -Dprefix=/usr/local (installed perl as /usr/local/bin)
make
make install
4. Using perl --version for testing perl installation,
5.Build a perl program named as hello.pl and input the following code:
print "Hello/n";
print "World/n";
print "This is my first perl program/n";
6. Perform perl hello.pl and the out as follows:
Hello
World
This is my first perl program
Ref.: http://www.perl.org/get.html
http://learnperl.scratchcomputing.com/
No comments:
Post a Comment