Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!apple!sun-barr!newstop!sun!amdcad!brahms!dwork From: dwork@brahms.amd.com (Jeff Dwork) Newsgroups: comp.lang.perl Subject: Re: perl man page (bugs and enhancements) Message-ID: <1990Aug14.193300.7083@amd.com> Date: 14 Aug 90 19:33:00 GMT References: <1990Aug13.194249.6156@amd.com> <9131@jpl-devvax.JPL.NASA.GOV> Sender: usenet@amd.com (NNTP Posting) Organization: Advanced Micro Devices; Sunnyvale, CA Lines: 24 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? Thanks, Jeff -- Jeff Dwork | 408-749-2356 | dwork@AMD.COM Advanced Micro Devices, M/S 45 |--------------------------------------- PO Box 3453 | The above opionions are mine, Sunnyvale, Ca 94088 | not AMD's.