Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is this possible, and how can I make it work? Thanks for your help in advance!my $temp_2 = "foo"; my $temp_3 = "bar"; for ($i = 2; $i < 4; $i++) { print ${"temp_$i"},"\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dynamically picking up Hashes or variables based on argument passed.
by FunkyMonk (Bishop) on Nov 19, 2007 at 21:20 UTC | |
by Anonymous Monk on Nov 19, 2007 at 22:48 UTC | |
|
Re: dynamically picking up Hashes or variables based on argument passed.
by Corion (Patriarch) on Nov 19, 2007 at 21:14 UTC | |
|
Re: dynamically picking up Hashes or variables based on argument passed.
by Roy Johnson (Monsignor) on Nov 19, 2007 at 21:15 UTC |