Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Quote and Quote-like Operators

by alfie (Pilgrim)
on Jan 15, 2009 at 21:12 UTC ( #736673=note: print w/ replies, xml ) Need Help??


in reply to Quote and Quote-like Operators

I wonder about how you claim that many programmers tend to use [] for qw. I always thought that qw() is the canonical way to use them. Of course it depends on the contents, but if you take a look at e.g. perldoc -f use and the examples therein - of course left aside what others noted already.


--
use signature;
signature(" So long\nRhonda");


Comment on Re: Quote and Quote-like Operators
Re^2: Quote and Quote-like Operators
by JavaFan (Canon) on Jan 15, 2009 at 22:14 UTC
    Well, I'm one of the people that use [] for qw. I very seldomly use () as delimiters; parenthesis already have a couple of meanings, using them as delimiters as well doesn't contribute to code clearity in my book.

    My favourite delimiters are:

    Operator Pref. Other Delim. Delims q, qq, qx {} <> // !! qw [] // {} <> s, m, qr // {} <> !! y, tr // [] {} <>
    I never use '#' as a delimiter (althought it's popular with many people).

    As you can see, all the delimiters I often use tend to be long, narrow, and mostly vertical.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-09-18 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (107 votes), past polls