@numbers = (1,2,3,4); foreach $num (@numbers) { no strict 'refs'; @{"store_get$num"} = ($num); }
In reply to Re^2: Adding a number from scalar variable to array name
by ikegami
in thread Adding a number from scalar variable to array name
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |