Monday, October 3, 2011

Configuring Perl in Ubuntu

Hi All,

This post explains how to configure perl in Debian based distros.

Open synaptic and search for perl and install it.

Issue this command first:

1. whereis perl
Copy the output of this command as your first bang line for your perl script.

Next perl -v command
This will issue which version of perl is being installed.

Then open gnome-terminal or your console and write this simple perl program. Copy as is.

#!/usr/bin/perl -w


print "hello world";

Name this file as a.perl. In the terminal run this command: perl a.perl


Enjoy,
Ananth S Gouri

No comments:

Post a Comment