in reply to Re: Re: MySQL / Perl Question
in thread MySQL / Perl Question
fetchrow_array() returns an array. If you assign it like:my ( $count ) = $sth->fetchrow_array();
assuming the SQL that I gave as an example, $count will always equal 1, the scalar context of the array on the right hand side. The parans are there to keep the array context and are quite necessary in this case.my $count = $sth->fetchrow_array();
-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important
|
---|
Replies are listed 'Best First'. | |
---|---|
Re4: MySQL / Perl Question
by blakem (Monsignor) on Nov 11, 2001 at 13:42 UTC | |
Re4: MySQL / Perl Question
by blakem (Monsignor) on Nov 12, 2001 at 13:20 UTC | |
Re: Re: Re: Re: MySQL / Perl Question
by gloryhack (Deacon) on Nov 10, 2001 at 22:40 UTC | |
by chromatic (Archbishop) on Nov 11, 2001 at 02:21 UTC | |
by blakem (Monsignor) on Nov 11, 2001 at 12:37 UTC |