On Fri, 6 Sep 2002, Fogle Cpl Shawn B wrote:

> I'm writing my first perl script with the llama (the beginner o'riley book)
> but the one thing I need to make a complete program that I don't see in the
> book or the perl faqs (although I'd bet it's there somewhere) is a
> acceptable way to cause the script to terminate. I have been having to goto
> another VC and kill the perl script. It would be nice for me to be able to
> press "Q" but that, to my little bit of knowledge of perl, would require a
> <STDIN> that was somewhat passive. Any suggestions? (I won't be asking many
> more newbie questions, as this is the only one that has seemed to stump me
> for the last week two).

Can you post the code that you have right now? That is if it is not too 
big. If you are accepting input from STDIN, control-D should do in unix. 
This sends an EOF to the reader. You might also want to read through.
perldoc -f exit


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to