On Tue, Feb 25, 2003 at 09:10:18AM +1100, Ron Savage wrote:
> 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:
> 
> >>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.

Odd. I cut-n-pasted the code from a working system.

Tim.

Reply via email to