Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sdd.hp.com!hplabs!hpcc05!hpcc01!weisberg From: weisberg@hpcc01.HP.COM (Len Weisberg) Newsgroups: comp.lang.perl Subject: Re: I'm lazy, can this be done somehow??? Message-ID: <1180011@hpcc01.HP.COM> Date: 28 Jan 91 20:05:51 GMT References: <1991Jan26.012646.4937@sdd.hp.com> Organization: HP Corp Computing & Services Lines: 22 Setting $[ does not set a pointer into the array. Rather, it changes the "names" (loosely speaking) by which you refer to elements of the array. the following debug session should illustrate: DB<1> @ary=('a', 'b', 'c', 'd', 'e', 'f', 'g'); DB<2> p $[ 0 DB<3> p $ary[2]; c DB<4> $[=4; DB<9> p $ary[2]; DB<10> p $ary[6]; c DB<11> q - Len Weisberg - HP Corp Computing & Services - weisberg@corp.HP.COM