Sorry for being so late to reply ;)

I can only recommend using the same shebang line for Unix and Windows.
Now you would probably say this is not possible - wrong, it is. When
setting up my website I figured it out since my test system was
Windows, but the target system was Linux with the usual line
#!/usr/bin/perl

How to get this to run on Windows systems?

Easy, when you have Windows 2000 (with NTFS) or higher you are done by
creating a directory C:\usr and symlinking (i.e. setting reparse
point, e.g. with this tool:
http://itb0002a.itb.uni-oldenburg.de/cgi-bin/download.pl?file=awxLink
) it to your real Perl installation folder. After you are done you
must be able to find perl.exe inside the folder "C:\usr\bin"!

On other (and older) Windows systems there is only the chance to
reinstall Perl into the aforementioned folder "C:\usr" (or install it
there from scratch).

Afterwards you have platform-independent scripts as long as you don't
use other platform specific features of your Perl packages.

And yes, this even works in case you have drive D:, E: ... and so on ;)

Nevertheless I have never, except for some special shells running in
the Cygwin environment, recognized that the sheband line be used on
Windows. I cannot rule this out for Perl scripts running under
[EMAIL PROTECTED], though.

Oliver
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to