Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

a word of warning about /$pattern/

by dada (Chaplain)
on Dec 02, 2003 at 13:36 UTC ( [id://311603]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # example of form:
    # Name: __________
    ...
    # Telephone: __________
    # etc.
    #  [Search]
    
  2. or download this
    if( $name =~ /\Q$pattern_name\E/i
    and $address =~ /\Q$pattern_address\E/i
    and $telephone =~ /\Q$pattern_telephone\E/i) {
        print "matched\n";
    }
    
  3. or download this
    if( (not $pattern_name or $name =~ /\Q$pattern_name\E/i)
    and (not $pattern_address or $address =~ /\Q$pattern_address\E/i)
    and (not $pattern_telephone or $telephone =~ /\Q$pattern_telephone\E/i
    +) ) {
        print "matched\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://311603]
Approved by valdez
Front-paged by arthas
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found