in reply to question mark in there
Just use \Q to quote out the '?' character:
abowley@lave:~$ perl -e '$a = $b = "word?dude"; print "$a $b\n" if $a +=~ m/\Q$b/' word?dude word?dude
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: question mark in there
by floopy (Sexton) on Dec 12, 2000 at 22:05 UTC | |
by chipmunk (Parson) on Dec 12, 2000 at 22:23 UTC |
In Section
Seekers of Perl Wisdom