Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: reverse quotemeta?

by nardo (Friar)
on Jun 26, 2001 at 19:39 UTC ( #91635=note: print w/replies, xml ) Need Help??


in reply to reverse quotemeta?

This isn't a reverse quotemeta since quotemeta won't turn a newline into '\n'
eval("\$x = \"$x\"");
should do what you want.

Update This is not ideal, although this will perform all escaped character conversions, if your string has an unescaped '$' in it then it will be replaced by a variable. For example: 'It costs $1.25' the '$1' will be replaced with the contents of $1

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2022-05-22 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?