Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

perlfunc:quotemeta

by gods
on Aug 24, 1999 at 22:41 UTC ( #185=perlfunc: print w/replies, xml ) Need Help??

quotemeta

See the current Perl documentation for quotemeta.

Here is our local, out-dated (pre-5.6) version:


quotemeta - quote regular expression magic characters



quotemeta EXPR

quotemeta



Returns the value of EXPR with all non-alphanumeric characters 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.) This is the internal function implementing the \Q escape in double-quoted strings.

If EXPR is omitted, uses $_.


Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[talexb]: Great quote from Re: (OT) Motivating the Unmotivated Programmer: "As Weinberg suggests, when a programmer becomes irreplaceable, it's time to replace him."

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2017-07-25 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (377 votes). Check out past polls.