Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by Eily (Deacon)
on Mar 06, 2014 at 10:07 UTC ( #1077200=note: print w/ replies, xml ) Need Help??


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

I might be mistaken on that, but I think you can only have Windows open files from the terminal with the default application. That is, the same one that will open by double clicking your file. So if you change it on one context, the other will follow.

If you don't want the default behaviour to be "run perl" for every .pl file, you could always give your test file another extension, like .ple. Or there's the solution of creating a batch file to start your script.


Comment on Re: How to run a perl program from the Windows CMD?
Re^2: How to run a perl program from the Windows CMD?
by Stefany (Novice) on Mar 06, 2014 at 10:19 UTC
    Thank you, I saved it at test.sh and now a pop up appears asking me to choose the correct program to open the file.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2014-12-29 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (192 votes), past polls