> [RT_System - Tue Jul 04 01:44:33 2000]:
>
> On Fri, 30 Jun 2000 17:50:58 +0200, Wolfgang Laun wrote:
> >I know that modifying the list from a map of foreach is a no-no,
> >but: The following program crashes with a segmentation fault,
> >and this is something that should not happen, right?
> >
> >#! /usr/bin/perl -w
> >use strict;
> >my @a = ( 'abc', 'def', 'ghi' );
> >@a = map { splice( @a, 0 ); $_ } ( @a );
> >print "done: @a\n";
>
> The array that's being iterated over in grep/map/foreach should
> probably be marked readonly for the duration of the iteration.
>
> Patch welcome.
>
>
> Sarathy
> [EMAIL PROTECTED]
>
Cool! The new panic recently added caught this case.
[EMAIL PROTECTED]:~/perl-fix$ ./perl rt_3451.pl
panic: sv_upgrade to unknown type 255 at rt_3451.pl line 2.