Re: A very basic question



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

.



Relevant Pages

  • RE: Help w/Class::Date Date.xs
    ... After downloading and unbundling ... There was no INSTALL file so I did the following: ... extensions of perl in C and C libraries. ... tzset and tzname from POSIX module." ...
    (perl.beginners)
  • installing modules problem - no rule to make target EXTERN.h
    ... I hope someone out there can help me, I am trying to install some perl ... modules - but when i try downloading the modules and compiling them - or ... Writing Makefile for Unicode::String ...
    (perl.beginners)
  • Re: install of perl 5.8.8
    ... You can avoid the compilation stage by downloading a Solaris package from ... So when I downloaded from sunfreeware and install the software, ... The Perl Language System - installs in /usr/local. ... Important Note - Solaris comes with a its own version of perl in /usr/bin. ...
    (comp.lang.perl.misc)
  • installing mod_perl?
    ... I have installed apache 2 on ubuntu and it is running fine. ... running the Makefile.pl to install. ... Your Perl is configured to link against libgdbm, ... I tried downloading apache and pointing the Mod_perl ...
    (comp.lang.perl.modules)
  • Exe and module download questions
    ... Questions related to the downloadable ActiveState version of Perl. ... Exe - What are the steps involved with creating a standalone .exe copy ... of a Perl program? ... downloading a module from Cpan for example, unzipping the module, and then ...
    (comp.lang.perl.misc)