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

How do I retrieve the values from the hash now?

Replies are listed 'Best First'.
Re^5: Perl Variables
by kyle (Abbot) on May 15, 2007 at 04:58 UTC

    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} };