Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Using user input to return variable typed.

by davido (Archbishop)
on Nov 13, 2012 at 18:17 UTC ( #1003684=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
      print $result, "\n";
    
    }
    
  2. or download this
    use 5.010;
    use strict;
    ...
        escape   => qr/^ \s* q (?: uit )? /ix,    # q or quit, case insens
    +itively.
      );
    }
    
  3. or download this
    $ ./diceroll.pl
    Enter a dice roll ("q" to quit):  [1d6] 
    ...
    
    Enter a dice roll ("q" to quit):  [1d6] q
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2014-07-28 23:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (210 votes), past polls