Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: passing a multidimentional hash-sub-hash (to a sub and back again)

by ase (Monk)
on Jul 01, 2000 at 00:34 UTC ( #20674=note: print w/replies, xml ) Need Help??


in reply to passing a multidimentional hash-sub-hash (to a sub and back again)

I think the answer to your question lies in the fact that return(%ALLDATA) returns a list of values (the keys and values of %ALLDATA while  return(\%ALLDATA)returns one value: a scalar that is a reference to the hash.
Hope that helps,
-ase

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2021-05-15 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (150 votes). Check out past polls.

    Notices?