in reply to I don't understand error message

It means that $result is undef, ie $in->next_result didn't return any value.

Replies are listed 'Best First'.
Re^2: I don't understand error message
by ikegami (Patriarch) on Jun 16, 2009 at 16:36 UTC

    A sub in scalar context (as is the case here) cannot do anything but return a value. (It crashes Perl when they don't.)

    - People for the equitable treatment of undef