Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Misreading m// documentation (BUG?)

by LanX (Saint)
on Mar 12, 2014 at 12:03 UTC ( [id://1078011]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1078011]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-23 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found