Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Empty STDIN does not exit while loop

by haukex (Archbishop)
on May 20, 2017 at 08:28 UTC ( [id://1190704]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use IO::Prompt 'prompt';
    my $resp = prompt("Foo? ", -yn);
    ...
    use Term::ReadLine;
    my $term = Term::ReadLine->new;
    my $line = $term->readline("Bar? ");
    
  2. or download this
    use ExtUtils::MakeMaker 'prompt';
    my $value = prompt("Quz?","n");
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-26 03:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found