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

Re^2: Ways of quoting

by haukex (Bishop)
on May 15, 2020 at 21:31 UTC ( #11116827=note: print w/replies, xml ) Need Help??


in reply to Re: Ways of quoting
in thread Ways of quoting

too bad we don't have: <<~/HERE/x
my $re = qr/@{[<<'HERE']}/x; f . . HERE

Close enough? ;-)

Replies are listed 'Best First'.
Re^3: Ways of quoting
by davido (Cardinal) on May 16, 2020 at 01:56 UTC

    Good enough for an upvote. I tend to shun the "@{[...]}" trick in real code, but this is a creative enough solution it made me smile.


    Dave

      ... and commonly referred to as the baby cart.

      (As a speaker of en_GB that's not a term in our common usage. You are more likely to hear "buggy" or "pram". IMHO this makes the "baby cart" term even more preferable since it has a unique meaning for me - it's only the perl operator, regardless of context.)

        Yeah, I've never heard the term "baby cart" outside the context of Perl. (I grew up in Australia and live in the UK.)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (1)
As of 2021-10-26 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (90 votes). Check out past polls.

    Notices?