Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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
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 avoiding work at the Monastery: (9)
As of 2021-06-24 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (132 votes). Check out past polls.

    Notices?