Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: perl DBI question about fetchrow_arrayref()

by sabari (Beadle)
on Apr 25, 2010 at 08:06 UTC ( #836746=note: print w/replies, xml ) Need Help??


in reply to Re: perl DBI question about fetchrow_arrayref()
in thread perl DBI question about fetchrow_arrayref()

The issue is simple ,during the push your inserting the ref not the value .So the last value printed many time while printing ,since the array contains the only list of ref . Like what your doing during in the first print here also you needs to insert the value not ref .
Best Regards, S.Sabarinathan,
  • Comment on Re^2: perl DBI question about fetchrow_arrayref()

Replies are listed 'Best First'.
Re^3: perl DBI question about fetchrow_arrayref()
by lightoverhead (Pilgrim) on Apr 25, 2010 at 09:46 UTC

    Thank you Sabarinathan. This thing really confuses me.

    now I understand, that when I used push, the ref finally pointed to the last record, so when I deferenced it, all the values became the last record.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://836746]
help
Chatterbox?
[Discipulus]: good morning folks!
choroba mornings back
[Corion]: Hi choroba!
[Corion]: And Discipulus!
Corion arrived back from London. Always nice to meet people again, even if it's just once per year.
[Corion]: Also, dk contributed some cool stuff to App::ShaderToy, like menu settings and real fullscreen, eliminating many of my #TO-DO comments ;)
[Corion]: I hope you spent the four days well without me online ;-D

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2016-12-06 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (101 votes). Check out past polls.