Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: User input check 'Do until' loop

by Eliya (Vicar)
on Mar 13, 2012 at 12:25 UTC ( [id://959311]=note: print w/replies, xml ) Need Help??


in reply to User input check 'Do until' loop

First, Perl in case-sensitive, i.e. Do is not do.

Then, in your if/elsif conditions, you'd need to repeat the "$response eq" part

if ($response eq 'yes' || $response eq 'Yes' || $response eq 'YES' + || $response eq 'y') {

or use a regex match such as

if ($response =~ /^y(?:es)?$/i) {

Replies are listed 'Best First'.
Re^2: User input check 'Do until' loop
by Ahten (Initiate) on Mar 13, 2012 at 13:04 UTC
    Ahh wow, what a ridiculous fix, alls working fine now, thank you :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-18 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found