Path: utzoo!attcan!uunet!world!decwrl!sdd.hp.com!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: panic: A_LVAL Message-ID: <9858@jpl-devvax.JPL.NASA.GOV> Date: 8 Oct 90 16:32:28 GMT References: <106865@convex.convex.com> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 13 In article <106865@convex.convex.com> tchrist@convex.Com (Tom Christiansen) writes: : The following two-liner triggers a "panic: A_LVAL" abort out of perl : at patchlevel 18: : : for (1..10) { $a[$_] = 1; } : for (@a) { $_ = !$_; } : : If the subscripts are changed to (0..10), it's just fine. I just fixed that one last week. When "foreach" iterates over an array, it now creates any missing values so that they can be assigned to. Larry