Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Single Quotes - how to avoid any escape processing?

by moritz (Cardinal)
on Jan 31, 2013 at 20:14 UTC ( #1016387=note: print w/ replies, xml ) Need Help??


in reply to Single Quotes - how to avoid any escape processing?

So is there a (simple) way to put a string into a scalar variable without any character escaping or processing of the contents of that string at all?

Not that I know of.

If you have large amounts of such data, maybe put them in a __DATA__ section, or into a config file.

That said, Perl 6 has a quoting construct Q'...' that doesn't have any escape sequences. Of course you can't escape the closing delimiter then.


Comment on Re: Single Quotes - how to avoid any escape processing?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2014-07-31 18:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (250 votes), past polls