Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: string does not contain

by OM_Zen (Scribe)
on Jan 22, 2003 at 17:29 UTC ( #229085=note: print w/ replies, xml ) Need Help??


in reply to string does not contain

Hi ,

$string !=~ /hello/ or unless($string =~ /hello/)


or that implies if not or a negate logic shall work for the not parsing a string value


Comment on Re: string does not contain
Download Code
Re: Re: string does not contain
by petral (Curate) on Jan 22, 2003 at 23:50 UTC
    Close.   Actually, $string !~ /hello/
      or ! ( $string =~ /hello/ )

      p

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-10-01 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (392 votes), past polls