in reply to Re^2: Problem using value of variable in a regular expression
in thread Problem using value of variable in a regular expression

Documented in various places. perlop, sections Quote-Like Operators and Gory details of parsing quoted constructs, and perldata, section Scalar value constructors.
  • Comment on Re^3: Problem using value of variable in a regular expression