JupiterHost.Net wrote:


Robert Hicks wrote:
If I am pulling data out with a $sth->fetchrow_arrayref, how do I see the
structure of what is coming back? I need to change the description on some

use Data::Dumper;

print Dumper $sth->fetchrow_arrayref(......


of the data coming back out (like changing a "C" to "Closed") but I am not
sure how to see the arrayref.

Its an array ref sooo....

my $row_ref = $sth->fetchrow_arrayref('SELECT Foo, Bar, Baz ...

print $row_ref->[2];

prints the value of the Baz column...

That I know, but on one of my tables I pull out a lot of values and while my brain understands it, sometimes it doesn't visualize it. :-)

I will try Data::Dumper...

Robert

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to