Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Detect presence of numbers 1-9

by demerphq (Chancellor)
on Apr 08, 2002 at 10:17 UTC ( #157405=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( $scalar !~ /[^12345]/ ) {
      print "match";
    }
    
  2. or download this
    if ( $scalar =~ /[^12345]/ ) {
      print "Illegal parameter: $scalar";
    } else {
      print "Acceptable parameter: $scalar";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2021-09-28 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?