Dr. Claus-Peter Becke wrote:

: maybe anybody detects the reason why the return value becomes 1

    Perl returns values from subroutines implicitly and explicitly.
A 'return' statement is used to send an explicit return. Otherwise,
the return value of the last statement is returned implicitly.
Explicit returns are preferred, but not required. You have chosen
an implicit return.

sub databaserequest_noun {
        .
        .
        .
                
        $dbh->disconnect;
}

    If successful, "$dbh->disconnect;", will return 1. What did
you want databaserequest_noun() to return?



HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
Free Market Advocate
Web Programmer

254 968-8328

Don't tread on my bandwidth. Trim your posts.


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