Technically, the shebang line doesn't mean anything special in Windows, with
one small exception: any command-line switches like -w you put in the
shebang line will be applied to the script.  But these are rarely necessary,
since there is usually a pragma (use warnings, in this case) that you can
use instead.  Maybe someone can think of another case that proves me wrong.

Really, though, the two things you need in Windows to run a perl script is:

1) Install ActivePerl from ActiveState.  You can compile other distributions
of Perl, but this is the version that works the best and has the most usage
in the Win32 Perl community, so if you run into some Win32-specific issues,
it helps to be on the same distribution.  Also, it comes with the Perl
Package Manager, which will allow you to find modules and install them
without needing a compiler and having to wade through the billions of
modules on CPAN if you know exactly what you want.

2) Just add a .pl extension to your Perl scripts and you're ready to go
(assuming you've done #1)

C) This one is just for Perl in general.  If you're not already doing it,
'use warnings' and 'use strict'.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 30, 2003 9:23 AM
To: [EMAIL PROTECTED]
Subject: Perl Windows question


Hi,

 

In  any unix system, I know that I need to type 

 

#!/usr/bin/perl or #!/usr/local/bin/perl

 

for my perl scripts to execute.

 

What is needed for windows?

 

#!c:\somepath\perl

 

maybe?

 

Phillip Bruce
ISC Consultant, System Architect
Location: Dublin, CA
* Cell: 408-476-8658
* Office: 925-560-7853 
AIM: OkieUnix 

 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to