in reply to need to increment a $scalar while inside for loop
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: need to increment a $scalar while inside for loop
by tilly (Archbishop) on Jan 07, 2002 at 04:37 UTC |