Help for this page

Select Code to Download


  1. or download this
    # code to open ERRLOG here
    eval {
        die "There's no way around this!";
    ...
    if ($@) {
        print ERRLOG "Caught: $@!\n";
    }
    
  2. or download this
    if (rmdir ($_)) {
        open(LOG, ">>$logfile") or warn "discarding logfile output\n";
        print LOG "Directory: $_ - has been deleted.\n";
    ...
    } else {
        warn "Cannot delete directory: $_ ($!)";
    }