Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 82146 invoked from network); 9 Mar 2006 02:21:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Mar 2006 02:21:35 -0000 Received: (qmail 93690 invoked by uid 500); 9 Mar 2006 02:21:34 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 93673 invoked by uid 500); 9 Mar 2006 02:21:34 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 93659 invoked by uid 99); 9 Mar 2006 02:21:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Mar 2006 18:21:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.77.29.165] (HELO secure.exclamationlabs.net) (66.77.29.165) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Mar 2006 18:21:33 -0800 Received: from [192.168.2.160] (c-69-141-1-101.hsd1.pa.comcast.net [69.141.1.101]) (authenticated (0 bits)) by secure.exclamationlabs.net (8.11.6/8.11.6) with ESMTP id k292LGf31570; Wed, 8 Mar 2006 20:21:17 -0600 Message-ID: <440F9116.8090307@modperlcookbook.org> Date: Wed, 08 Mar 2006 21:21:10 -0500 From: Geoffrey Young User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040927 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Philippe M. Chiasson" CC: Frank Wiles , dev@perl.apache.org Subject: Re: confusing error message patch References: <20060307191741.7c348116.frank@wiles.org> <440F8ECA.1080607@ectoplasm.org> In-Reply-To: <440F8ECA.1080607@ectoplasm.org> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Philippe M. Chiasson wrote: > Frank Wiles wrote: > >> Hey Everyone, >> >> Saw the thread about $r->read($buf,0) and figured it would be wise >> to fix the error message to keep someone else from getting confused. >> >> Here is a small patch to change "The LENGTH argument can't be >> negative" to "The LENGTH argument can't be negative or zero". > > > How about one of these ? > > "The LENGTH argument must be a positive number" > "The LENGTH argument must be > 0" > "The LENGTH argument must be >= 1" > "The LENGTH argument must be greater than zero" have we actually demonstrated that $r->read($buf,0) is an error? almost definitely useless, sure, but an error? or maybe the problem is a loop might read and return true indefinitely, so while ($r->read($buf,$len)) { ... } would be bad? --Geoff --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org