Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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
Replies are listed 'Best First'.
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 avoiding work at the Monastery: (10)
As of 2015-07-28 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls