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

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

by tobyink (Canon)
on Jan 31, 2013 at 21:06 UTC ( [id://1016394]=note: print w/replies, xml ) Need Help??


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

Although I released it as a joke module, Acme::What does the trick!

use 5.010; use strict; use warnings; use Acme::What; sub WHAT { +shift } my $var = what \\foo; say $var;

I wonder if I should create a slightly saner version along the lines of the Perl 6 Q operator that moritz mentioned?

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?
Username:
Password:

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

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

    No recent polls found