in reply to How to ignore special characters in a variable ?
use warnings; use strict; my $line = "CCCC--CCCC--CCC(--CC(O"; my $string = quotemeta "CCC("; if ($line =~ m/$string/) {print "match";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to ignore special characters in a variable ?
by Anonymous Monk on Feb 15, 2011 at 18:43 UTC |