In addition to the suggestions that have already been given about
associating the .pl file extension with perl.exe, I would heartily
recommend that you install ActivePerl from http://www.activestate.com.
It's free, and is the de facto standard for Windows Perl.  There are
other ones that work (Cygwin's version, for example), but this one is
the most widely used and takes care of these kinds of things for you in
addition to giving you the very useful PPM utility for installing
precompiled modules, which can get you up and running quicker.



-----Original Message-----
From: Mahdi A Sbeih [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 11:41 PM
To: beginners@perl.org
Subject: calling a perl script on windows

I am working on porting some scripts from unix to windows, and I noticed

that perl ignores the first line of the script, and it seems I have to 
run the script like this:
D:\Perl\bin\perl.exe myscript.pl

if I run it like we do on unix:
./myscript.pl

it will search the path and it uses the perl found in the path env
variable.

<snip>




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to