Re: perl <= 5.6 core

[email protected] (Phil Carmody)
Newsgroups perl.golf
Message-ID <[email protected]>
--- Paul Johnson <[email protected]> wrote:
> I golfed the bug down to perl -e 'map { 1 for () } 1 .. 2' :-)

I guess that was my first experience of golf - I used to submit minimal
criminals to TI's compiler division after my fellow coders had given me
entire files that failed to compile correctly. 

Here are some more data-points:

bash-2.05b$ perl -e 'map{0 for@_}0..0'
Segmentation fault

but

bash-2.05b$ perl -e 'map{0 for()}0..0'

Woh! weird stuff.

Phil


=====
First rule of Factor Club - you do not talk about Factor Club.
Second rule of Factor Club - you DO NOT talk about Factor Club.
Third rule of Factor Club - when the cofactor is prime, or you've trial-
divided up to the square root of the number, the factoring is over.

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.