in reply to RE: pattern matching: why does the following code evaluate true? (and how do i fix it?)
in thread pattern matching: why does the following code evaluate true? (and how do i fix it?)
If you're looking for literal periods, do one of the following:
$key2 = "INITIAL\.LASTNAME,INITIAL2\.LASTNAME2,\."; $key2 = quotemeta "INITIAL.LASTNAME,INITIAL2.LASTNAME2,."; $key =~ /\Q$key2/
|
|---|