Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Simple question:
I need to initialize 20 variables($var1..$var20) to zero.
I need to initialize 20 variables($var1..$var20) to zero.
$var1=0; $var2=0; $var3=0; ...
How do I do this with arrays in Perl?
Thanks...Mike
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I create an array that holds number of variables with values?
by runrig (Abbot) on Dec 20, 2000 at 06:13 UTC | |
by I0 (Priest) on Dec 20, 2000 at 12:24 UTC | |
Re: How can I create an array that holds number of variables with values?
by Russ (Deacon) on Dec 27, 2000 at 03:36 UTC | |
Re: How can I create an array that holds number of variables with values?
by turnstep (Parson) on Dec 26, 2000 at 08:22 UTC | |
Re: How can I create an array that holds number of variables with values?
by I0 (Priest) on Dec 20, 2000 at 09:13 UTC | |
Re: How can I create an array that holds number of variables with values?
by runrig (Abbot) on Dec 20, 2000 at 06:15 UTC | |
Re: How can I create an array that holds number of variables with values?
by Anonymous Monk on Dec 20, 2000 at 06:45 UTC |
Back to
Seekers of Perl Wisdom