I think you get the idea. I will leave the rest up to you. Hope that helps.$name = "bam"; $$name = 1; # sets $bam ${$name} = 2; # sets $bam ${$name x 2} = 3 # sets $bambam
In reply to Re: need to increment a $scalar while inside for loop
by jonjacobmoon
in thread need to increment a $scalar while inside for loop
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |