Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Proper use of "EQ" or while loops

by davido (Archbishop)
on Jul 22, 2013 at 15:30 UTC ( #1045674=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
      my $input = '';
    ...
      }
    }
    print "It worked, of course.\n";
    
  2. or download this
    use IO::Prompt::Hooked;
    my $input = prompt(
    ...
      validate => qr/^c$/i,
    );
    print "It worked, of course.\n";
    
  3. or download this
    use IO::Prompt::Hooked;
    prompt(
    ...
      validate => qr/^c$/i,
    );
    print "If we're here, we know it worked.\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2015-07-06 05:40 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 (70 votes), past polls