Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!rex!ukma!usenet.ins.cwru.edu!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery KB8JRR) Newsgroups: comp.lang.perl Subject: Re: I'm lazy, can this be done somehow??? Message-ID: <1991Jan30.174355.8537@NCoast.ORG> Date: 30 Jan 91 17:43:55 GMT References: <1991Jan26.012646.4937@sdd.hp.com> <1991Jan26.154656.4794@NCoast.ORG> <11210@jpl-devvax.JPL.NASA.GOV> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery KB8JRR) Followup-To: comp.lang.perl Distribution: na Organization: North Coast Public Access Un*x (ncoast) Lines: 23 As quoted from <11210@jpl-devvax.JPL.NASA.GOV> by lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall): +--------------- | In article <1991Jan26.154656.4794@NCoast.ORG> allbery@ncoast.ORG (Brandon S. Allbery KB8JRR) writes: | : Although I do admit that I've thought $[ should work like this. | | $[ only changes the offset to the first element. It doesn't affect the | contents of the array at all. +--------------- I don't want it to change the contents, just to change the "name" of the first element. Consider "$[ = -400": its meaning would be "the first element of an array should be called `-400'". The implementation would be that $[ would be subtracted from the index provided in the program to get the *real* index. Of course, this would be more useful as a per-array attribute instead of a global. ++Brandon -- Me: Brandon S. Allbery VHF/UHF: KB8JRR on 220, 2m, 440 Internet: allbery@NCoast.ORG Packet: KB8JRR @ WA8BXN America OnLine: KB8JRR AMPR: KB8JRR.AmPR.ORG [44.70.4.88] uunet!usenet.ins.cwru.edu!ncoast!allbery Delphi: ALLBERY