in reply to Help me ! I am stuck ! PERL DBI
If there are no rows returned, the sub you have never does a return at all. Instead, it goes on to call $sth->finish() and $db->disconnect() (both of which are unnecessary) and finally exit, which is what terminates the program. If you want to print or do anything after calling connectCBMS, change exit(0) to return.
Note also:
I hope this helps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help me ! I am stuck ! PERL DBI
by Anonymous Monk on Oct 13, 2007 at 03:35 UTC | |
by spectre9 (Beadle) on Oct 13, 2007 at 03:56 UTC |