Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Quote and Quote-like Operators

by grinder (Bishop)
on Jan 16, 2009 at 08:35 UTC ( #736772=note: print w/ replies, xml ) Need Help??


in reply to Re: Quote and Quote-like Operators
in thread Quote and Quote-like Operators

I used slash (/) delimiters for the longest time in my code, until it dawned on me that using a vi-compatible delimiter pair would allow me to bounce on the % key to go from the beginning to the end. (I believe this is written somewhere in the Perl documentation).

As a result, qw() has become my preferred idiom, as has qq{}. Looking back at older code these days I find that q/a string/ lacks symmetry, and thus beauty.

Getting back to the OP, isn't it much better if everyone uses these operators exactly in the way they are described in Perl manuals, I would say yes, that's a sensible default. But one should know when (and why) to break the rules.

• another intruder with the mooring in the heart of the Perl


Comment on Re^2: Quote and Quote-like Operators

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2015-07-31 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls