Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: perl man page (bugs and enhancements) Message-ID: <9142@jpl-devvax.JPL.NASA.GOV> Date: 14 Aug 90 23:12:06 GMT References: <1990Aug13.194249.6156@amd.com> <9131@jpl-devvax.JPL.NASA.GOV> <1990Aug14.193300.7083@amd.com> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 21 In article <1990Aug14.193300.7083@amd.com> dwork@brahms.amd.com (Jeff Dwork) writes: : In article <9131@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: : >In article <1990Aug13.194249.6156@amd.com> dwork@brahms.amd.com (Jeff Dwork) writes: : >: Two man page bugs: : >: : >: > splice(ARRAY,OFFSET) : >: > : >: > push(@a,$x,$y) splice(@a,$#x+1,0,$x,$y) : >: : >: Shouldn't that be `$#a'? : > : >No. That would insert $x and $y before the last element. : > : : What I meant was `$#a+1' as opposed to `$#x+1'. It seems to me that `$#x' : refers to the last index of array @x, which has nothing to do with scalar $x. : Or am I still confused? No, you're absolutely right. Larry