Is PERL installed in Suse 11.1

Yes, it is. I was not sure of this. I hence made a search in Google to find if it is. Unfortunatly, did find interesting. But I found a post that help.

Write a simple Perl Program to check if Perl works. I started with the famous “Hello World” program.

Save a file with a name hello.pl . The content of this file is a one line perl code to print ‘Hello World’.

print “Hello World\n”;

The open a Terminal and type the follow command.

perl hello.pl

If Perl is installed and everything is OK, u should get something like this on the terminal.

Hello World

Advertisements

1 Comment »

  1. running `perl -v` is quicker and will show perl version.


RSS Feed for this entry

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: