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

Re^2: Repeating an input prompt

by zod (Scribe)
on Nov 28, 2008 at 23:05 UTC ( #726691=note: print w/replies, xml ) Need Help??

in reply to Re: Repeating an input prompt
in thread Repeating an input prompt

Thanks for the critique. I don't quite understand this line, though:
until $selection >= 1 && $selection <= @$drinks_ref;
Wouldn't that always be true if you input 1 - 4 ? Can you elaborate on that a little? thanks.

Replies are listed 'Best First'.
Re^3: Repeating an input prompt
by jwkrahn (Monsignor) on Nov 29, 2008 at 02:36 UTC

    I put that in to verify that the selection was a number in the range 1 - 4.

      Got it. When I first looked at it, I was thinking the do..until loop was still controlling the 'outer' in my original code. Now I see that you moved that to a while loop.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://726691]
[shmem]: there are so many ways thinkable to fix that situation, some feasible and some not, that I'm unable to give good advice.
[Spenser]: I installed 5.22 with opkg. I can use it with cpan. I'm actually trying to install perl-DBD-mysql, but couldn't with it. So I went back to the factory version, 5.10.
[Spenser]: So, nevermind about CPAN. I give up on the downgraded angle. I'm back to fighting to install DBD.
[shmem]: please open a SoPW. At what point is the perl-DBD-mysql installation failing?
[shmem]: do you have the mysqlclient libs on that device, for instance?
[shmem]: and btw, your original questian is an XY Problem classic ;-)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2018-03-17 12:48 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (224 votes). Check out past polls.