On May 23, Paul said:

>{ local @ary = $hash_name->{arrayref}; # @ary now the array
>  print $ary[4];                       # access is "normal"
>}                                      # aliasing ends with scope

Err, I think you mean

  local *ary = $hash_name->{arrayref};

That will make @ary an alias to the array in @{ $hash_name->{arrayref} }.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734
** I need a publisher for my book "Learning Perl's Regular Expressions" **

Reply via email to