Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Running scripts normally without using shell?

by Albannach (Prior)
on Oct 15, 2006 at 04:55 UTC ( #578354=note: print w/ replies, xml ) Need Help??


in reply to Running scripts normally without using shell?

If it's simplicity you want, just make this the last line of your script:

<STDIN>;
This early in your lessons it is probably sufficient to say that this tells perl to wait for something to be typed, and that will have the effect of holding the window open for you. When you have finished admiring your output, just hit Enter, thereby giving the program some input and the window will close. There are lots of other ways to do what you want, like use one of many GUI toolkits or IDEs, but this is certainly simple and cheap!

Besides, I think you may find after some time that despite the shell being "old fashioned", it is often a far better environment to work in!

--
I'd like to be able to assign to an luser

Update: fixed typo


Comment on Re: Running scripts normally without using shell?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-09-30 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (385 votes), past polls