Friday, February 4, 2011

PERL : Hello World

perl is modularal, procedural, object orientation, parse text
perl is an interpretor
which perl -> /usr/bin/perl
perl --help
perl -v
mkdir perl
cd /perl
touch helloworld.pl
pico helloworld.pl
perl precompilation before processing
#!/usr/bin/perl -w # echo warnings durring run of the script
print ("Hello World!\n");
print 23\n;
#END
perl helloworld.pl
perl -w helloworld.pl
perl helloworld.pl > data1
chmod u+x helloworld.pl
./helloworld.pl

No comments:

Post a Comment