Re: A very basic question
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 9 Feb 2006 11:19:04 -0800
Avinash Sridhar wrote:
I am using a Windows XP Professional box. Want to learn perl, how do i go
about downloading the perl interpreter. I was told to use Active perl. I
downloaded it and having a tough time figuring out how I can work with it.
You downloaded it. Did you also install it? Or do you have the .msi
or .zip sitting on the desktop somewhere? If so, install the files you
downloaded. Just double-clicking the icon should get you started
there.
Once you have it installed, fire up your favorite text editor (I
personally prefer Edit+ (http://www.editplus.com) ), and start writing
a Perl program. For example:
#!/usr/bin/perl
use strict;
use warnings;
print "Hello, World!\n";
Save the file with a .pl extension, like hello.pl.
Go to Start->Run, and type 'cmd'. Hit enter. This will bring up a
black console window. Change to the directory in which you saved
hello.pl and type:
hello.pl
You should see your output. If not, something probably went wrong with
the installation. Try:
perl hello.pl
and see if that changes anything.
Next, start reading the documentation. In that same black console
window, type:
perldoc perlintro
or, go to Start->Run->Programs->ActiveState ActivePerl -> documentation
and click on the "perlintro" link. Read, and follow the recommended
links there as well.
Good luck, and welcome to the world of Perl!
Paul Lalli
.
- References:
- A very basic question
- From: Avinash Sridhar
- A very basic question
- Prev by Date: Re: Prints the factorial of a noninterger number
- Next by Date: Re: connect to oracle server
- Previous by thread: A very basic question
- Next by thread: Re: A very basic question
- Index(es):
Relevant Pages
|