in reply to [untitled node, ID 216639]
but this will be a syntax error when use strict; in effect.${"$letter$number"};
my $result = eval "\$$letter$number";
But most correct way to solve your problem is just use arrays or hashes.
Best wishes,
Courage, the Cowardly Dog
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Variables in variable names
by tachyon (Chancellor) on Nov 30, 2002 at 14:40 UTC | |
by Courage (Parson) on Dec 01, 2002 at 09:08 UTC |