[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



On Mon, 24 Jan 2000 17:35:48 PST, Larry Wall wrote:
>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 :-).

Yes, the first pass was done mechanically with:
    s/use vars qw\(([^)]*)\)/'our(' . join(', ', split(' ', $1)) . ')'/

followed by later eyeballing and minimal necessary edits. :-)


Sarathy
gsar@ActiveState.com


References to:
Larry Wall <larry@wall.org>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]