It's possible, but you shouldn't. Use your digits as array indexes, instead.
my @num; for (1..10) { $num[$_] = $_; }
When you want lots and lots of automatically generated scalar variables, you nearly always really want a hash or an array, instead.
After Compline,
Zaxo
In reply to Re: Creating variables for each array member
by Zaxo
in thread Creating variables for each array member
by sashac88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |