in reply to redo question ( part 'catching segfaults' )

That redo should work, but:
do { eval { ... }; warn ... } while ($@);
would do just as well; is there a reason to prefer the bare block?

Do you really mean be appending to NEWIMG?

I'm not sure what error you are expecting to get that you would want to retry. Seems like anything that is going to fail is going to fail repeatedly. But I know nothing of ImageMagic.

Replies are listed 'Best First'.
Re^2: redo question ( part 'catching segfaults' )
by geektron (Curate) on Jul 14, 2004 at 17:55 UTC
    i prefer bare blocks, just as a style thing. they make more sense to me than  do ... while blocks.

    no, i don't mean to be appending. that's something else i noticed. it *really* won't append, because there should never be a file there by the name, but making sure doesn't hurt.

    well, the *thought* is that it's a transitory error ... hence the retry. but, i can't assume that it's transitory, so i'm adding a  $attempts var, and moving on if  $attempts > 3