Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

RE (tilly) 2: Adding 2 + 2

by tilly (Archbishop)
on Sep 11, 2000 at 15:18 UTC ( [id://31894]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to RE: Adding 2 + 2
in thread Adding 2 + 2

I follow the directions, but it tells me that the sum is 3. Did you mean to write directions that do not allow 1.5 as input?

Replies are listed 'Best First'.
RE: RE (tilly) 2: Adding 2 + 2
by KM (Priest) on Sep 11, 2000 at 15:23 UTC
    Haha.. I made the directions more clear.

    Cheers,
    KM

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://31894]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.