Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: References for subroutines to Hashes in Hashes :)

by mikfire (Deacon)
on Aug 17, 2001 at 17:48 UTC ( #105667=note: print w/replies, xml ) Need Help??


in reply to References for subroutines to Hashes in Hashes :)

You are very close. The trick to remember is that hashes and arrays can only store scalars. Perl can have complex data structures only because a reference is a scalar.

This means that your hash of hashes is really a hash of references to hashes. To pass the reference to a subroutine, then, you need only access the value. In this case simple remove the preceding slash ( sorry, I would try to use a code tag, but I am using Opera and it makes a real mess of things ).

Hth,
mikfire

  • Comment on Re: References for subroutines to Hashes in Hashes :)

Replies are listed 'Best First'.
Re: Re: References for subroutines to Hashes in Hashes :)
by merlijn_u (Novice) on Aug 17, 2001 at 17:56 UTC
    thanks alot mikfire,
    so the build up of the ashes is correct, woot thats super...

    I'll go try that right know in my code!
    Merlijn

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://105667]
help
Chatterbox?
[robby_dobby]: if I do make it, I can at least savour their local tea! :-)
[LanX]: oh they have sleper cells everywhere
[robby_dobby]: LanX: Not really, the only problems would be from religious divides. Coptics/Moslems/ Kurds/Jews
[erix]: Zzz
[erix]: Coptics? :)
[robby_dobby]: erix: Coptic Christians in Egypt
[choroba]: Robocoptic!
[erix]: I like Coptics :)
[LanX]: Copts
[erix]: sorry - just pulling your leg

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (17)
As of 2017-04-24 16:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (442 votes). Check out past polls.