Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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
Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2016-05-30 17:28 GMT
Find Nodes?
    Voting Booth?