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

Re: Detect presence of numbers 1-9

by perlplexer (Hermit)
on Apr 08, 2002 at 13:01 UTC ( #157428=note: print w/replies, xml ) Need Help??


in reply to Detect presence of numbers 1-9

unless ($str =~ tr/1-5//c){ print "Valid\n"; }else{ print "Invalid\n"; }

--perlplexer

Log In?
Username:
Password:

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

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












    Results (114 votes). Check out past polls.

    Notices?