Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2016-06-28 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (359 votes). Check out past polls.