use warnings; use strict; my $line = "CCCC--CCCC--CCC(--CC(O"; my $string = quotemeta "CCC("; if ($line =~ m/$string/) {print "match";}
In reply to Re: How to ignore special characters in a variable ?
by toolic
in thread How to ignore special characters in a variable ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |