jettero has asked for the wisdom of the Perl Monks concerning the following question:
my first question today worked out so well already... Here's another. :)
I don't want the '?' to get used as an optional marker thingy in the regexp... I instead want to see if $b is in $a... Help me make this work?
sh$ perl -e '$a = $b = "word?dude"; print "$a $b\n" if $a =~ m/$b/'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: question mark in there
by runrig (Abbot) on Dec 12, 2000 at 21:19 UTC | |
Re: question mark in there
by kilinrax (Deacon) on Dec 12, 2000 at 21:19 UTC | |
by floopy (Sexton) on Dec 12, 2000 at 22:05 UTC | |
by chipmunk (Parson) on Dec 12, 2000 at 22:23 UTC | |
Re: question mark in there
by I0 (Priest) on Dec 12, 2000 at 21:57 UTC |
Back to
Seekers of Perl Wisdom