Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Random Imaging

by appex32 (Initiate)
on Aug 04, 2003 at 16:04 UTC ( #280723=note: print w/replies, xml ) Need Help??


in reply to 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 where you would use only one $ to call a particular value? Thanks

Replies are listed 'Best First'.
Re: Re: Re: Random Imaging
by Cine (Friar) on Aug 04, 2003 at 19:54 UTC
    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://280723]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2023-01-31 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?