D
Dan Jacobson
How does one write
my $a=0; my $b=0; my $c=0;
as compactly as possible (blanks OK)?
my ($a,$b,$c); $a=$b=$c=0;?
my ($a,$b,$c)=(0,0,0);?
But always I end up saying something over again.
Under use strict, I've got a lot of variables to declare and
initialize to zero, but all I can find are non streamlined ways of
doing it. Perhaps I should consider map()...
my $a=0; my $b=0; my $c=0;
as compactly as possible (blanks OK)?
my ($a,$b,$c); $a=$b=$c=0;?
my ($a,$b,$c)=(0,0,0);?
But always I end up saying something over again.
Under use strict, I've got a lot of variables to declare and
initialize to zero, but all I can find are non streamlined ways of
doing it. Perhaps I should consider map()...