Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Matching an integer between 0 and 100

by McDarren (Abbot)
on Sep 01, 2009 at 15:43 UTC ( #792689=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -le 'for (qw/0 1 19 32.4 100 77 138 342.1/) { print "$_ is ", /^(
    +?:100|\d\d?)$/ ? "valid input" : "invalid input"}'
    
  2. or download this
    0 is valid input
    1 is valid input
    ...
    77 is valid input
    138 is invalid input
    342.1 is invalid input
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2016-07-27 18:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (246 votes). Check out past polls.