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 (Monsignor)
on Jan 22, 2013 at 12:33 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1014643]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-18 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found