Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Best way to take reference to an array \ or []

by vinoth.ree (Prior)
on Jan 22, 2013 at 12:33 UTC ( #1014643=note: print w/ replies, xml ) Need Help??


in reply to Re: Best way to take reference to an array \ or []
in thread Best way to take reference to an array \ or []

Ok. thats why I am getting the array ref correctly on using [] and "my" declares the @temp array each time so \ works here!!! Correct me if I am wrong!


Comment on Re^2: Best way to take reference to an array \ or []
Re^3: Best way to take reference to an array \ or []
by muba (Priest) on Jan 22, 2013 at 12:35 UTC

    Note that your code, especially the line

    return \%user_details;
    will return a hash reference.

      Hi muba

      Thanks for that, I corrected in my code, updating the post now

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2015-07-07 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (91 votes), past polls