Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-02-24 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (355 votes). Check out past polls.