Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Which Win32 distribution of Perl should I use: ActiveState, Strawberry, or both?

by Anonymous Monk
on Apr 12, 2010 at 00:31 UTC ( [id://834166]=note: print w/replies, xml ) Need Help??


in reply to Which Win32 distribution of Perl should I use: ActiveState, Strawberry, or both?

$ help ftype Displays or modifies file types used in file extension associations FTYPE [fileType[=[openCommandString]]] fileType Specifies the file type to examine or change openCommandString Specifies the open command to use when launching f +iles of this type. Type FTYPE without parameters to display the current file types that have open command strings defined. FTYPE is invoked with just a file type, it displays the current open command string for that file type. Specify nothing for the open command string and the FTYPE command will delete the open command string for the file type. Within an open command string %0 or %1 are substituted with the file name being launched through the assocation. %* gets all the parameters and %2 gets the 1st parameter, %3 the second, etc. %~n gets all the remainin +g parameters starting with the nth parameter, where n may be between 2 a +nd 9, inclusive. For example: ASSOC .pl=PerlScript FTYPE PerlScript=perl.exe %1 %* would allow you to invoke a Perl script as follows: script.pl 1 2 3 If you want to eliminate the need to type the extensions, then do the following: set PATHEXT=.pl;%PATHEXT% and the script could be invoked as follows: script 1 2 3 $ help assoc Displays or modifies file extension associations ASSOC [.ext[=[fileType]]] .ext Specifies the file extension to associate the file type wi +th fileType Specifies the file type to associate with the file extensi +on Type ASSOC without parameters to display the current file associations +. If ASSOC is invoked with just a file extension, it displays the curren +t file association for that file extension. Specify nothing for the fil +e type and the command will delete the association for the file extensio +n.
http://stackoverflow.com/questions/2036577/how-do-i-ignore-the-perl-shebang-on-windows-with-apache-2 http://stackoverflow.com/questions/1846176/how-do-i-setup-strawberry-perl-in-msys http://stackoverflow.com/questions/1095309/writing-a-portable-command-line-wrapper-in-c
  • Comment on Re: Which Win32 distribution of Perl should I use: ActiveState, Strawberry, or both?
  • Download Code

Replies are listed 'Best First'.
Re^2: Which Win32 distribution of Perl should I use: ActiveState, Strawberry, or both?
by Lady_Aleena (Priest) on Apr 12, 2010 at 17:59 UTC

    Anonymous Monk...That was exactly what I needed. Thank you so very much for researching that for me. I knew I had to do something like that, I just couldn't remember the commands. With the solution above, I am all set up now. I just wish I knew who the saver of sanity is.

    Have a nice day!
    Lady Aleena

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://834166]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2025-07-14 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.