Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I often use =~ to see if a string contains a value such as $string=~"hello" but how do I see if a string does not contain a value? For example say if a string does not contain "hello" do this?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: string does not contain
by pfaut (Priest) on Jan 22, 2003 at 15:34 UTC | |
Re: string does not contain
by broquaint (Abbot) on Jan 22, 2003 at 15:37 UTC | |
Re: string does not contain
by aging acolyte (Pilgrim) on Jan 22, 2003 at 15:41 UTC | |
Re: string does not contain
by fredopalus (Friar) on Jan 22, 2003 at 15:46 UTC | |
Re: string does not contain
by Hofmator (Curate) on Jan 23, 2003 at 13:07 UTC | |
Re: string does not contain
by OM_Zen (Scribe) on Jan 22, 2003 at 17:29 UTC | |
by petral (Curate) on Jan 22, 2003 at 23:50 UTC |
Back to
Seekers of Perl Wisdom