![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Adding scalars but with a twist..by snappybo (Initiate) |
on Feb 13, 2005 at 09:31 UTC ( #430556=perlquestion: print w/replies, xml ) | Need Help?? |
snappybo has asked for the wisdom of the Perl Monks concerning the following question:
I didn't quite know how to label this one, but here's what i want to do.. Lets says i have numeric variables ranging from $Sel1Ttl all the way through to $Sel80Ttl, is there an easy method to add all the values together via a loop. Instead of typing $Sel1Ttl + $Sel2Ttl + Sel3Ttl...... + $Sel80Ttl. I.e. can you break the name of the scalar up and insert a number into it $Sel1......80Ttl so i can then use that in my additions.. ?
Back to
Seekers of Perl Wisdom
|
|