[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [PATCH lib/lib.pm 5.005_63] Removing use of vars.pm
Larry Wall writes:
| I see you usually did
|
| our($FOO, $BAR, $BAZ);
| $FOO = "foo";
| $BAR = "bar";
| $BAZ = "baz";
|
| and sometimes you did
|
| our $FOO = "foo";
| our $BAR = "bar";
| our $BAZ = "baz";
|
| I think I have a slight preference for the latter because it encourages
| people to initialize. I presume your usual preference for the former
| can be explained by ease of editing (and possible unediting :-).
|
| I almost never use C<my> with a list either. It's possible I'm ashamed
| of the parentheses despite their pragmatic necessity.
I wonder why? In comparison to the two above, I tend to go for
my ($FOO, $BAR, $BAZ) = ("foo", "bar", "baz");
being both concise and initializing.
Mx.
- Follow-Ups from:
-
Larry Wall <larry@wall.org>
- References to:
-
Gurusamy Sarathy <gsar@ActiveState.com>
Larry Wall <larry@wall.org>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]