Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by vinoth.ree (Parson)
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 having an uproarious good time at the Monastery: (12)
As of 2014-10-23 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls