
BillKSmith
Veteran
Dec 26, 2011, 11:23 AM
Post #4 of 4
(7554 views)
|
Re: [Dimka] reg expressions - strange berhavior
[In reply to]
|
Can't Post
|
|
Although your method "works", I would still recommend qr for regular expressions becuse you do not have to be concerned about a mixture of string and re syntax. Note: you can get the advantage of the quotemeta by using the equivalent re syntax \Q. my $string = qr{\Qref|NM_001131814.1|}; if ( $line =~ $string ) { Good Luck, Bill
(This post was edited by BillKSmith on Dec 26, 2011, 11:31 AM)
|