Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Disable Control +C

by Athanasius (Abbot)
on Mar 13, 2013 at 02:30 UTC ( #1023094=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Disable Control +C
in thread Disable Control +C

Hello PilotinControl,

You just need to loop on $choose until it is defined:

... my $choose = <STDIN>; $choose = <STDIN> until defined $choose; # <-- Add this line chomp $choose; ...

That will remove the warnings you are currently seeing.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,


Comment on Re^3: Disable Control +C
Select or Download Code
Replies are listed 'Best First'.
Re^4: Disable Control +C
by PilotinControl (Monk) on Mar 13, 2013 at 07:13 UTC

    Thanks that worked!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2015-07-31 06:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls