Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 having an uproarious good time at the Monastery: (7)
As of 2014-08-23 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (174 votes), past polls