On 8/1/06, Dr. Claus-Peter Becke <[EMAIL PROTECTED]> wrote:
databaserequest_noun($col, $table, $case) is a self written function
based on the dbi manual's proposals. here's the code:

sub databaserequest_noun {
...
$dbh->disconnect;
}
maybe anybody detects the reason why the return value becomes 1

When the keyword 'return' isn't used, the return value from a Perl
subroutine is the last expression evaluated in the subroutine. That
looks to be the value of $dbh->disconnect, which is probably 1 for
success. Did you mean to return some other value?

Cheers!

--Tom Phoenix
Stonehenge Perl Training

--
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