in reply to Variable Names and References
or, as other people suggested, just use a hash.... { no stict 'refs'; for (1..3) { my $ref = \${'str'.$_}; print "The string is $$ref"; } } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Variable Names and References
by Joost (Canon) on Mar 10, 2007 at 16:19 UTC |