[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 wrote:

> Martyn Pearce writes:
>
> : 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.
> 
> The problem with that is the separation between the variable name and
> its value.  And the more elements in the list, the worse it gets.

I sometimes tend toward:

my ($FOO,  $BAR,  $BAZ)=
   ("foo", "bar", "baz");

in this situation.

Pete
-- 
use Disclaimer::Standard;
my $phone='+44 1793 564450';    # "THIS IS THE COMPATIBILITY
my $fax='+44 1793 566918';      #  POLICE. RESTORE YOUR ORIGINAL
my $mobile='+44 7973 725120';   #  TOKE.C AND BACK AWAY SLOWLY."


Follow-Ups from:
Larry Wall <larry@wall.org>
References to:
Larry Wall <larry@wall.org>

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