in reply to or warn question

I havn't tested it, but possibly check for $!

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

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: or warn question
by chromatic (Archbishop) on Jun 08, 2012 at 19:25 UTC

    How do you know the delete() method sets $!?

Re^2: or warn question
by TCM (Acolyte) on Jun 08, 2012 at 19:30 UTC
    I didn't test this either, but thank you for your reply!