Next Tricks of the Wizards 212

Quick Return with Warning

          unless (open LOG, ">> $LOGFILE") {
            warn "Couldn't append to $LOGFILE: $!";
            return;
          }
        return warn "Couldn't append to $LOGFILE: $!"
          unless open LOG, ">> $LOGFILE";
        return !warn "Couldn't append to $LOGFILE: $!"
          unless open LOG, ">> $LOGFILE";   


Next Copyright © 2003 M. J. Dominus