in reply to Re: Combining 2 variable?
in thread Combining 2 variable?

> this violates strict 'refs', strict 'vars',

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 ☆☆☆☆ :)