this doesn't work....docos are bare on this....how to construct variable names on the fly?$var1 = 7; $var2 = 3; foreach $number(1..2) { print $var${number} . "\n"; }
In reply to construct variable name on the fly by aquarium
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |