Usual caveats about signals not being safe but if you use INT you can also catch ^C automaticlly to do a neat cleanup & exit. As an aside I also use a strategy like:
$dbh = DBI->connect( .... ); END{ $dbh->disconnect if $dbh }
to ensure clean database disconnects, having exhaused the available supply of connections in the past.
cheers
tachyon
In reply to Re^3: Dormus interruptus
by tachyon
in thread Dormus interruptus
by pbeckingham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |