Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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");

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2018-03-19 03:42 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (232 votes). Check out past polls.