To be precise: eval doesn't violate strict 'refs' and strict 'vars' is easily calmed with my declarations ( though the OP never used strict )...
> perl use strict; use warnings; my @a; $a[3] = "Hello"; my $b = 'a'; my $c = '[3]'; my $d = eval "\$$b$c"; print "$d\n"; __END__ Hello
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
In reply to Re^2: Combining 2 variable?
by LanX
in thread Combining 2 variable?
by Krillian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |