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.
In reply to Re: Help me ! I am stuck ! PERL DBI
by kyle
in thread Help me ! I am stuck ! PERL DBI
by raja.b4u
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |