in reply to Re^4: Perl Variables
in thread Perl Variables

How do I retrieve the values from the hash now?

Use the same expressions you used for assignment.

$TGS_Value{$tgs}{VAR} = \@VAR;

After that, $TGS_Value{$tgs}{VAR} is an array reference.

my $var_ref = $TGS_Value{$tgs}{VAR}; my @VAR = @{$var_ref}; # ...is the same as: my @VAR = @{ $TGS_Value{$tgs}{VAR} };