![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: Re: Re: Random Imagingby Cine (Friar) |
on Aug 04, 2003 at 19:54 UTC ( #280775=note: print w/replies, xml ) | Need Help?? |
When you use $$img{...}, what does using two $'s mean...does that signify that you are using an array of hashes rather than just a simple arrayYes and no. An array of hashes are really an array of references to hashes. Therefore when you fetch something from the array, you get a hash reference back. To actually use the hash, you then have to de-reference it. There are two syntactic ways of doing that $reference->{} or $$reference{} I like the latter best, mostly because its shorter and because it is coloured yellow in emacs... Read the perlref manpage T I M T O W T D I
In Section
Seekers of Perl Wisdom
|
|