How about something like this? do the logging then die
if (!rmdir $_) { open(LOG, ">>$logfile") or warn "discarding logfile output \n"; print LOG "Directory: $_ - had a problem deleting.\n"; close (LOG) or warn "Can't close: $!"; die "could not rmdir $_\n"; }
In reply to Re: A couple of problems....
by wardk
in thread A couple of problems....
by djw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |