Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by marto (Cardinal)
on Mar 06, 2014 at 10:31 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1077215]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found