Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Random Imaging

by Cine (Friar)
on Aug 04, 2003 at 19:54 UTC ( #280775=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Random Imaging
in thread Random Imaging

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 array
Yes 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://280775]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2022-08-08 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?