Ilya BANDORIN wrote: > Since you're in Windows, nobody cares about that #!path/to/perl. :) > If you wish wperl.exe to process your scripts instead of perl.exe, associate > .pl file extension with wperl.exe. That's all. > But I think that's not good because if you do it all your scripts will be > launched with no console screen. > Better run your scripts like "path/to/wperl.exe script.pl".
Or you could create another class, such as '*.wpl' or '*.plw' or whatever, and associate that with wperl.exe instead of perl.exe - In Windows Explorer, select the 'Tools' menu, then the 'Folder Options' item. - In the dialog that pops up, select the 'File Types' tab. - Select the PL file type (type 'PL' in the listview control to jump to it). - Press the 'Advanced' button. - Select 'Open' or 'Run' or whatever the command name is - Click 'Edit' - Cut and paste the info from 'Application used to perform action' - Back on the 'File Types' tab, press the 'New' button. - Enter the file extension (for example, 'WPL') and click 'OK' - Find and select your new extension (I think it puts it at the top of the list - Press the 'Advanced' button/ - Enter a name for your new file type (for example, 'Windowed Perl Script') - Press the 'New' button - Enter a name for your action - Paste the stuff you cut before, and change perl.exe to wperl.exe - You may have to click 'Set Default', or it may be set automatically (I can't remember) - Click 'OK' Now you can run script.wpl with wperl.exe by double clicking in Windows Explorer, but script.pl will still run with perl.exe (and therefore have a console). ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users http://perl-win32-gui.sourceforge.net/