Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to run a perl program from the Windows CMD?

by marto (Archbishop)
on Mar 06, 2014 at 10:31 UTC ( #1077215=note: print w/replies, xml ) Need Help??


in reply to How to run a perl program from the Windows CMD?

Open a command prompt, type the following:

perl -le "print $^X"

Copy the output from above (e.g. the output for me was D:\perl\bin\perl.exe), run the following from the command prompt (remember to change my example path for the output of the first command):

assoc .pl=PerlScript ftype PerlScript=D:\perl\bin\perl.exe "%1" %*

test.pl will now run the script rather than open it in your text editor.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2019-12-06 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (157 votes). Check out past polls.

    Notices?