in reply to A misunderstanding of quotemeta ?

quotemeta
Returns the value of EXPR with all non-"word" character +s backslashed. (That is, all characters not matching "/[A-Za-z_0-9]/" will be preceded by a backslash in the returned string, regardless of any locale settings.) T +his is the internal function implementing the "\Q" escape in d +ouble- quoted strings.

So the dot is backslashed.

Other question, why do you quotemeta the RHS of a s/// ?

Which problem are you trying to solve?

Cheers Rolf

(addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^2: A misunderstanding of quotemeta ?
by syphilis (Archbishop) on Jun 04, 2014 at 03:42 UTC
    Other question, why do you quotemeta the RHS of a s/// ?

    Duh - there's no need to quotemeta the RHS.

    Which problem are you trying to solve?

    The problem of my own idiocy. (It's an ongoing exercise.)
    Thanks, guys.

    Cheers,
    Rob