in reply to Re: Arrays and Hashes woes
in thread Arrays and Hashes woes

Many thanks, using references solved the problem. I note that using:
%tmpF->{ID}
and
$tmpD{ID}
seems to make no difference, both work. What are your reasons for suggesting the bottom way over the top way? I am not trying to say you are wrong! far from it, I just want to know why you would do it that way :) TienLung

Replies are listed 'Best First'.
Re^3: Arrays and Hashes woes
by almut (Canon) on Mar 16, 2009 at 11:56 UTC

    The former syntax is deprecated (and rather unusual):

    $ perl -w -e "%tmpF->{ID} = 'foo'" Using a hash as a reference is deprecated at -e line 1.