No such thing as a small change | |
PerlMonks |
Re: Use an incrementing counter as a variableby Happy-the-monk (Canon) |
on Sep 11, 2017 at 11:54 UTC ( [id://1199087]=note: print w/replies, xml ) | Need Help?? |
Greetings, I don't actually get, why you want this. If I read you right, first you are saying you want the counter as a name.
Then at the end you are saying, you want it as a value, and your code shows you add it as a value.
So it looks to me line you have to make up your mind about what it is you want. Nevertheless, this solution gives you both the names and the values:
So maybe that's a starting point. Cheers, Sören Créateur des bugs mobiles - let loose once, run everywhere.
In Section
Seekers of Perl Wisdom
|
|