Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Checking for single digit

by vladb (Vicar)
on May 06, 2003 at 01:14 UTC ( #255780=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      if ($input =~ /^[0-9]$/) {
        print "input was a single digit number\n";
      } else {
        print "input wasn't a single digit number\n";
      }
    
  2. or download this
    ^   Match the beginning of the line
    $   Match the end of the line (or before newline at the end)
    
  3. or download this
    # Under Construction
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2014-08-21 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (136 votes), past polls