|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Running scripts normally without using shell?by Albannach (Monsignor) |
| on Oct 15, 2006 at 00:55 UTC ( [id://578354]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
If it's simplicity you want, just make this the last line of your script:
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!
--
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||