in reply to Re^3: Misreading m// documentation (BUG?)
in thread Misreading m// documentation

> Um, $ is still a metacharacter, try '\$x'

If "'" is the delimiter, no interpolation is performed on the PATTERN.

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^5: Misreading m// documentation (BUG?)
by Anonymous Monk on Mar 12, 2014 at 12:07 UTC
    Yes, interpolation means double quoted string, regex metacharacters are still regex metacharacters m/.$/ and m'.$' match the same string

    variables interpolate in double quoted strings but metachars are still metachars