in reply to Regular expression problems
or you can assign it directly:$readingframe =~ /(MHGR)/; $protein = $1;
In your case, though, you can just output MHGR, as there is nothing dynamic in your regular expression.($protein) = $readingframe =~ /(MHGR)/;
See also Regexp Quote Like Operators, perlretut, perlre.
|
|---|