Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Detect presence of numbers 1-9

by Dog and Pony (Priest)
on Apr 08, 2002 at 09:20 UTC ( #157393=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $scalar =~ /^[1-5]+$/
    
  2. or download this
    $scalar !~ /[^1-5]/
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2021-06-16 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (76 votes). Check out past polls.

    Notices?