I have these lines in a batch file as part of my build process, works a treat, since when publishing ActivePerl via group policy the file types aren't associated properly (bad defaults in the MSI?) Obbiously the shebang works fine if using a bash shell on Windows (Cygwin), but in that case be careful which version of perl you're using, Cygperl or Activestate.
Paul assoc .pl=PerlScript ftype PerlScript=c:\perl\bin\perl.exe %%1 %%* -----Original Message----- ***************************************************************** Gloucester Research Limited believes the information provided herein is reliable. While every care has been taken to ensure accuracy, the information is furnished to the recipients with no warranty as to the completeness and accuracy of its contents and on condition that any errors or omissions shall not be made the basis for any claim, demand or cause for action. ***************************************************************** From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo Orizondo Sent: 27 January 2005 10:43 To: [EMAIL PROTECTED]; honery wu Cc: perl-win32-users@listserv.ActiveState.com Subject: Re: How to use "#! perl " to directly run perl script on Win32 platform? Hi! On Fri, 21 Jan 2005 12:13:11 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : > If you don't see a little yellow pearl as icon for the > .pl files, you probably didn't associate .pl with > perl.exe during the install. > > You can do this manually by right-clicking > on one of your .pl files, choose 'Properties', > then select 'open' or 'open with...' and 'choose program'. > If the Perl Command Line Interpreter is not in the list > of file shown then, hit the 'Browse...' button and go to > '<YourPerlDir>/bin' and choose 'perl.exe'. > Be sure to tick the checkbutton 'Always use the selected > program for this kind of files'. : Actually, the command should be: C:\Perl\bin\perl.exe "%1" %* assuming you have installed perl at the default location. HTH, Rodrigo _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs