Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by Eily (Chaplain)
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 scrutinizing the Monastery: (15)
As of 2014-11-26 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (171 votes), past polls