Perl Basics part 1: Every first Perl program
Posted Under (Perl) by Ramraj Edagutti on Oct Sat, 2008
No CommentsHello, how you doing today? I hope you doing great. I know, you came here to learn some perl basics and write some sample code to get used to it. Okay, lets get in and write our first perl program.
1. Install perl distribution from perl.org, download here
or
you can also downalod perl from activestate.com which comes few additional perl modules.
2. To write perl programs you need a text editor or perl IDE. you can use simple notepad or textpad, or you can also perl IDE such as a Open Perl IDE or Perl Express. I personally use advance notepad called NotePad++, which is opensource and free software.
3. Now, create a file called testperl.pl, perls files end with .pl file extension.
4. Write the below statement in the created testperl.pl file
print “Hello World n”;
5. Open the command prompt, and go to the folder where you have a testperl.pl and run the below command
perl testperl.pl
6. Bravo! now you could see “Hello World” on command prompt console.

