Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by vinoth.ree (Monsignor)
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 []

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-12-02 20:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (50 votes). Check out past polls.