Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

ActiveState script in Windows Powershell

by WBF3 (Initiate)
on Aug 06, 2009 at 20:29 UTC ( #786573=perlquestion: print w/replies, xml ) Need Help??

WBF3 has asked for the wisdom of the Perl Monks concerning the following question:

I have noted an interesting phenomonon.

I have begun learning perl using the excellent llama book and was doing the exercizes for chapter 1

I like Powershell so I opened in that to run the scripts

If I type "perl program.pl" it works as expected right out of the current command window

If I type "program.pl" of course it will not run in PS

but if I type ".\program.pl" it creates a new window which only stays open if the script is running so I had to put in an input command to hold it open

This does not occur in CMD, both ways run the same.

Does anybody know why it has the different operation based on how it is called?

Is there a better way to keep the window open than waiting for an input?

Thanx!

WBF3

  • Comment on ActiveState script in Windows Powershell

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2019-07-24 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (32 votes). Check out past polls.

    Notices?