in reply to or warn question

The do_something or warn_or_die($message); idiom is a good one. But there's no requirement that you use it when it doesn't fit well. Just do the obvious...

if ($ftp->delete($file)) { print LOG "$file successfully deleted\n"; } else { print LOG "Cannot delete $file - ", $ftp->message; }

"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re^2: or warn question
by TCM (Acolyte) on Jun 08, 2012 at 19:29 UTC
    This one worked like a charm too. Thank you for taking the time to reply!