in reply to assigning a value to several vars

You could chain the return value of an assignment e.g
$min[$i] = $max[$i] = $emax[$i] = $len;
Or you could just repeat the value e.g
($min[$i], $max[$i], $emax[$i]) = ($len) x 3;
Update: or as merlyn might have it
$_ = $len for $min[$i], $max[$i], $emax[$i];
See. perlop and perlsyn for more info.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: assigning a value to several vars
by Roy Johnson (Monsignor) on Jan 16, 2004 at 16:05 UTC
    Or in this particular case,
    $_->[$i] = $len for \@min, \@max, \@emax;

    The PerlMonk tr/// Advocate