On Mon, 24 Feb 2003 09:22:09 +0000, Tim Bunce wrote:
>On Sun, Feb 23, 2003 at 11:05:33AM +1100, Ron Savage wrote:

Hi Tim

>Because I was using:
>
>    $dbh->{FetchHashKeyName} = 'NAME_lc';

OK.

>>5) At the end of this sub, I added code to return something :-):
>>\%col_info;
>
>That's not right. It was returning the $sth (see the definition of
>column_info).
>An explicit
>    return $sth;
>would be better.

I expected it (Perl) to return the last expression, here $sth, but
that simply doesn't work, in the sense that the caller does not
reveive any information. Hence my brute force fix.
--
Cheers
Ron Savage, [EMAIL PROTECTED] on 25/02/2003
http://savage.net.au/index.html


Reply via email to