Path: utzoo!attcan!uunet!mcsun!hp4nl!ruuinf!piet From: piet@cs.ruu.nl (Piet van Oostrum) Newsgroups: comp.lang.perl Subject: grep problems with undefined array elements in slices Message-ID: <2707@ruuinf.cs.ruu.nl> Date: 22 Mar 90 13:52:37 GMT Sender: news@ruuinf.cs.ruu.nl Reply-To: piet@cs.ruu.nl (Piet van Oostrum) Organization: Dept of Computer Science, Utrecht University, The Netherlands Lines: 16 $Header: perly.c,v 3.0.1.4 90/02/28 18:06:41 lwall Locked $ Patch level: 15 The following scripts generate: panic: do_match: %x=(1,'aap',2,'noot',3,'mies',4,'wim'); grep (/i/,@x{1,6,17}); @y = (1,2,3); grep(/i/,@y[1..8]); -- Piet* van Oostrum, Dept of Computer Science, Utrecht University, Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands. Telephone: +31-30-531806 Uucp: uunet!mcsun!ruuinf!piet Telefax: +31-30-513791 Internet: piet@cs.ruu.nl (*`Pete')