[26667] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 8774 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Dec 18 21:06:25 2005

Date: Sun, 18 Dec 2005 18:05:03 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sun, 18 Dec 2005     Volume: 10 Number: 8774

Today's topics:
        Line number inconsistency <occitan@esperanto.org>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Sun, 18 Dec 2005 23:47:09 +0100
From: Daniel Pfeiffer <occitan@esperanto.org>
Subject: Line number inconsistency
Message-Id: <do4okd$m0l$02$1@news.t-online.com>

I recently stumbled over a design bug, and there doesn't even seem to be a 
clear warning about it in the docs:  columns (e.g. in strings), like all 
indices, count from 0, but file lines count from 1.  That leads to absurd 
equivalences like

   5..7 and print while <>;

does the same as

   print +(<>)[4..6];

Worse, if you do

   0..9 and print while <>;

that will not emulate head, instead the flip-flop will never become true.

I guess it's too late to make line numbers behave, but there should be a big 
warning in the docs!

coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer

-- 
lerne / learn / apprends / lär dig / ucz się    Esperanto:
                     http://lernu.net  /  http://ikurso.net


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 8774
***************************************


home help back first fref pref prev next nref lref last post