Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: trapping ctrl-d

by count0 (Friar)
on Dec 31, 2001 at 21:46 UTC ( #135400=note: print w/ replies, xml ) Need Help??


in reply to trapping ctrl-d

You don't really need to stop the user from sending an EOF, you just need to keep prompting for input until you get what you want:

until ($condition) { # Keep reading from STDIN. # Store and/or process the input. }


Comment on Re: trapping ctrl-d
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-08-03 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (24 votes), past polls