in reply to How to ignore special characters in a variable ?
my $line = "CCCC--CCCC--CCC(--CC(O"; my $string = "CCC("; if ($line =~ m/\Q$string\E/) {print "match";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to ignore special characters in a variable ?
by Anonymous Monk on Feb 17, 2011 at 05:21 UTC | |
by ikegami (Patriarch) on Feb 17, 2011 at 06:54 UTC | |
by Anonymous Monk on Feb 17, 2011 at 05:24 UTC | |
by Anonymous Monk on Feb 17, 2011 at 06:45 UTC |