Hello:
Your questions are not necessarily clueless. I had to do a lot of digging
to find out the information detailed below. And before someone screams
RTFM, I'll continue...
Don't use Word. Go here
http://www.perlmonks.org/index.pl?node=Outside%20Links and download a few
editors and pick one that you like.
You can always execute a script by calling the Perl interpreter with the
script as an argument: e.g., perl pscript.pl. You can also associate files
with a .pl extension with the Perl interpreter, so that executing pscript.pl
will correctly invoke the Perl interpreter and execute your script. The
following commands (performed at the DOS prompt) will let you do this:
assoc .pl=Perl
ftype Perl=c:\Perl\Bin\Perl.exe %1 %*
This assumes, of course, that Perl has been installed on your C: drive. If
not, then use whatever path is applicable.
To avoid having to type in the extension (.pl) every time you execute a
script, you can set the PATHEXT environment variable to include Perl
scripts. This is done through the following command:
set pathext=%pathext%;.pl
On another topic, I strongly suggest buying the following books (these have
been a life-saver for me):
Learning Perl on Win32 Systems (a 3rd edition has come out, which
incorporates both UNIX and Win32, but I haven't had time to evaluate it yet,
so I can't recommend it; however, since it's an O'Reilly book, it's probably
to be preferred over Learning Perl on Win32 Systems).
Win32 Perl Programming: The Standard Extensions. By Dave Roth.
Win32 Perl Scripting: The Administrator's Handbook. Also by Dave Roth.
Programming Perl (3rd Edition). By Wall, Christiansen, & Orwant.
Go to www.bookpool.com to order any of these at cut rate prices. Anyway, I
hope this helped you out.
Dean Theophilou
Genisar
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 05, 2001 12:01 AM
To: [EMAIL PROTECTED]
Subject: Some Extremely Clueless Questions!
Hello,
I'm learning Perl for work, where the OS is Unix, but I'd like to practice
at
home, where I'm using Windows 95. I downloaded and installed ActivePerl,
but
can't get anything whatsoever to run, including the example script that came
with ActivePerl. My questions at this point:
1) How exactly do I edit a script? In Word and then change it to a .pl
file? Do I have to change file types back and forth every time I change the
script?
2) How do I add the path to the Perl program to MS-DOS?
Thanks in advance for your help.
Leonard
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]