or, as other people suggested, just use a hash.... { no stict 'refs'; for (1..3) { my $ref = \${'str'.$_}; print "The string is $$ref"; } } ...
In reply to Re: Variable Names and References
by Sartan
in thread Variable Names and References
by chakram88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |