setebos has asked for the wisdom of the Perl Monks concerning the following question:
perlop says the following about some of the quote-like operators:
Talking from experience, many programmers tend to use [] for qw, {} for q or qq or vice versa and etc. And they make "steel" rules about their own kind of quoting, the problem is that the other colleagues rarely know or remember those rules, because they have thier own or don't case (and why should they) or do not use those operators.
But does it make any sense, isn't it it much better if everyone uses these operators exactly in the way they are described in Perl manuals?
Customary Generic Meaning Interpolates '' q{} Literal no "" qq{} Literal yes `` qx{} Command yes* qw{} Word list no qr{} Pattern yes*
Talking from experience, many programmers tend to use [] for qw, {} for q or qq or vice versa and etc. And they make "steel" rules about their own kind of quoting, the problem is that the other colleagues rarely know or remember those rules, because they have thier own or don't case (and why should they) or do not use those operators.
But does it make any sense, isn't it it much better if everyone uses these operators exactly in the way they are described in Perl manuals?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Quote and Quote-like Operators
by jeffa (Bishop) on Jan 15, 2009 at 19:08 UTC | |
by grinder (Bishop) on Jan 16, 2009 at 08:35 UTC | |
by setebos (Beadle) on Jan 15, 2009 at 21:37 UTC | |
by Jenda (Abbot) on Jan 15, 2009 at 21:49 UTC | |
by jeffa (Bishop) on Jan 15, 2009 at 21:48 UTC | |
Re: Quote and Quote-like Operators
by MidLifeXis (Monsignor) on Jan 15, 2009 at 19:25 UTC | |
Re: Quote and Quote-like Operators
by gaal (Parson) on Jan 15, 2009 at 19:06 UTC | |
Re: Quote and Quote-like Operators
by alfie (Pilgrim) on Jan 15, 2009 at 21:12 UTC | |
by JavaFan (Canon) on Jan 15, 2009 at 22:14 UTC |
Back to
Seekers of Perl Wisdom