in reply to Re: Hash references moving between modules
in thread Hash references moving between modules
Hmm... Well, derefrencing a hashref can be done in the way you showed up there, but it is perfectly valid to get a scalar back from a hashref this way as well:
and assigning into a hashref can be done in the same way:$scalar = $$hashref{key};
Perhaps taking a look at References quick reference will sum it up nicely.my $hashref = {}; $$hashref{key} = $scalar;
Thanks,
Scott
Project coordinator of the Generic Model Organism Database Project
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Hash references moving between modules
by castaway (Parson) on Jan 14, 2003 at 14:39 UTC |
In Section
Seekers of Perl Wisdom