On Tue, Apr 12, 2005 at 07:12:58PM -0000, bstrand @ switchmanagement. com wrote:
> On Suse 9.2, perl 5.8.5 x86 or x86-64, the following perl snippet
> hangs the compiler with 100% CPU usage:
> 
> perl -we 'BEGIN { print "compile-time\n"; } use strict; my $type = 2; print 
> join(" ", grep $type (1,2,3,2,4,2,5)), "\n"; BEGIN { print "never get 
> here\n"; }'

Confirmed on OS X 5.8.6.


> The behavior under Suse 8.2, perl 5.8.0 x86 is the rather bizarre (or perhaps 
> I'm
> misunderstanding grep):
> 
> compile-time
> never get here
> 1 2 3 2

Confirmed on OS X 5.8.1RC3.  That is bizarre.

Reply via email to