Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-09-01 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (366 votes), past polls