Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

RE: RE (tilly) 2: Adding 2 + 2

by KM (Priest)
on Sep 11, 2000 at 19:23 UTC ( #31895=note: print w/replies, xml ) Need Help??


in reply to RE (tilly) 2: Adding 2 + 2
in thread Adding 2 + 2

Haha.. I made the directions more clear.

Cheers,
KM

Replies are listed 'Best First'.
RE: RE: RE (tilly) 2: Adding 2 + 2
by BlaisePascal (Monk) on Sep 11, 2000 at 20:56 UTC
    Is that integer range "between 1 and 3" inclusive or exclusive? You might want to include some error-checking:
    { print "Pick an integer between 1 and 3 (exclusive):" $mynum1 = <STDIN>; (print "Follow instructions!\n"),redo unless ($mynum < 3) and ($mynum > 1) and ($mynum == int($mynum)); }
      1 2 3
        ^
        |_ between
      

      Cheers,
      KM

        So you are saying that when the state lottery instructions say "choose 6 numbers between 1 and 48", and the winning numbers are 1,4,17,24,36, and 48, then -nobody- should have won?

        "Between 1 and 3" is ambiguous in (American) English, with the most common meaning being inclusive.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2018-12-16 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (70 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!