Perl is an interpreted high-level programming language developed by Larry Wall.
Perl stands for practical extraction ans reporting language.It is basically a scripting language, which is compiled each time before running. It is a powerful and famous scripting language now a days.
For writing programs in Perl you just need a text editor in which you can write the program and then save it with .pl extension and you need a Perl interpreter.
So now here is the first program which is hello world in Perl
Program:
#!/perl64/bin/perl
print ("Hello, world!\n");
Output:
Hello, world!
So now we have run our first Perl program.Its very simple.We use print function for printing anything as output.
On Windows we can use notepad for writing the programs and command prompt for running perl programs.
For this first we have to tell the system where the Perl interpreter is?For this we just go to the folder where the Perl interpreter is.Normally in windows default location for Perl is in C drive .
cd perl64
cd bin
and then for running the program
perl hello.pl
where hello.pl is the name of the program.
Perl stands for practical extraction ans reporting language.It is basically a scripting language, which is compiled each time before running. It is a powerful and famous scripting language now a days.
For writing programs in Perl you just need a text editor in which you can write the program and then save it with .pl extension and you need a Perl interpreter.
So now here is the first program which is hello world in Perl
Program:
#!/perl64/bin/perl
print ("Hello, world!\n");
Output:
Hello, world!
So now we have run our first Perl program.Its very simple.We use print function for printing anything as output.
On Windows we can use notepad for writing the programs and command prompt for running perl programs.
For this first we have to tell the system where the Perl interpreter is?For this we just go to the folder where the Perl interpreter is.Normally in windows default location for Perl is in C drive .
cd perl64
cd bin
and then for running the program
perl hello.pl
where hello.pl is the name of the program.
0 comments:
Post a Comment