in reply to Array naming difference @name @{'name'}
Why do you want to actually use symbolic reference to use/access a variable?
You could use a hash ....
my %var_map = ( 'one' => [ 1 .. 2 ] , 'three' => [ 33, 43 ] ); my $name = 'one'; print @{ $var_map{ $name } };
If you still have pressing need, justifiable or otherwise, to implement the original intent, look up "symbolic reference".
|
|---|