in reply to Re: Hash references and efficiency
in thread Hash references and efficiency
I've actually always coded like this:
my %hash = ( jim => 'fred', babs => 'buster' ); my $href = \%hash; print $$href{jim}, "\n";
But you're saying that the $href->{jim} syntax is preferred?
--
perl -e "print qq/just another perl hacker who doesn't grok japh\n/"
simeon2000|http://holdren.net/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Hash references and efficiency
by perrin (Chancellor) on Aug 03, 2002 at 18:18 UTC |
In Section
Seekers of Perl Wisdom