From owner-freebsd-questions Mon Jul 5 14:36:12 1999 Delivered-To: freebsd-questions@freebsd.org Received: from plab.ku.dk (plab.ku.dk [130.225.105.65]) by hub.freebsd.org (Postfix) with ESMTP id 15E3614CC5 for ; Mon, 5 Jul 1999 14:36:09 -0700 (PDT) (envelope-from tobez@plab.ku.dk) Received: from lion.plab.ku.dk (lion.plab.ku.dk [130.225.105.49]) by plab.ku.dk (8.9.1/8.9.1) with ESMTP id XAA21639; Mon, 5 Jul 1999 23:36:08 +0200 (CEST) Received: (from tobez@localhost) by lion.plab.ku.dk (8.9.3/8.9.3) id XAA09610; Mon, 5 Jul 1999 23:33:56 +0200 (CEST) (envelope-from tobez) Date: Mon, 5 Jul 1999 23:33:56 +0200 From: Anton Berezin To: Dan Langille Cc: Burke Gallagher , freebsd-questions@FreeBSD.ORG Subject: Re: running frequent cron perl scripts Message-ID: <19990705233356.A9576@lion.plab.ku.dk> References: <19990705111124.ZBJY282564.mta1-rme@wocker>; <19990705170738.D5735@lion.plab.ku.dk> <19990705203750.BEYX282564.mta1-rme@wocker> <19990705232139.D8704@lion.plab.ku.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990705232139.D8704@lion.plab.ku.dk>; from Anton Berezin on Mon, Jul 05, 1999 at 11:21:39PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jul 05, 1999 at 11:21:39PM +0200, Anton Berezin wrote: >> if ($ip !~ ?^$OldIP$?) { > This beats me. Why someone needs to match a constant string against > another constant string *backwards*? Also, the use of ?? is > deprecated. Much better: > if ($ip ne $OldIP) { Well, I hate to followup on my own posting, but it is late here... ?? does not match backwards. I've just reread the docs... But it should not be here anyway. (This shows the amount of confusion I have had with this line. I've never used ?? myself, and I am pretty sure I never will.) :-) -- Anton Berezin The Protein Laboratory, University of Copenhagen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message