On Thu, Jun 27, 2002 at 09:40:00AM -0000, Felix Geerinckx wrote:
> on Wed, 26 Jun 2002 22:56:29 GMT, [EMAIL PROTECTED] (Tim Bunce)
> wrote:
>
> > Yeap. Something like:
> >
> > while (...) {
> > eval {
> > $dbh = DBI->connect_cached(..., { RaiseError => 1
> > });
> > ... do the work here ...
> > }
> > }
> >
> > Note the connect_cached.
>
> Why would you put this in an eval-block?
To catch errors. There ought to be something like
if ($@) {
....
sleep N;
}
after the eval.
Tim.
