[EMAIL PROTECTED] schreef:

> I have to write a "daemon" in Perl, with the quite simple structure
> below :
>
> sub test {
>    while(1) {
>       Oracle database connection;
>       $state = result of a database query;
>
>       if ( $state == 1 ) {
>          call to another function;
>       }
>    }
> }


How wouldn't

   while(1) {
      Oracle database connection;

create more connections than you need? Are the connections ever closed?

-- 
Affijn, Ruud

"Gewoon is een tijger."



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