Perl interpreter is actually installed from beginning on ubuntu 10.04(Lucid Lynx).So just start writing programs.If perl is not installed on ubuntu then go to synaptic package manager and search for perl;then install the latest version of perl.Perl is a script type programming language.Perl has very wide application in web development.Usually perl code use very less space and time in compare to other higher level programming languages like C.
Run.. First Perl program on Ubuntu 10.04
1. Open Gedit and write a small program given below to begin.
print “Welcome!\nEnter the two numbers… to add\n”;
print “First Number\t”;
print “Second Number\t”;
print”sum of the two given numbers = $sum\n”;
2.Save it as sum.pl or any file name ending with .pl.
3.Open Ubuntu terminal CTRL+ALT+T or Applications->Accessories->Terminal.
4.Change the directory(Use cd command) to the destination of file(sum.pl).
5.Type the command ..in terminal
$ perl sum.pl
6.Then your program will be executed(if no error is present) and it will ask you to enter the two numbers and it will calculate the sum.
7.That’s All..If you find any problem ..then you may like to notify me through comment.