in reply to Array name contained within a string
Wrap your data in a hash:
Your intent could also be satisfied with a symbolic reference dereference, but that would be too dirty. Just so you recognise dirt when you see it,my %list = { list1 => ["one","two","three","four"], list2 => ["four","three","two","one"] ); my $list_ref = $list{$name};
my $list_ref = \@{$name};
After Compline,
Zaxo
|
|---|