http://www.perlmonks.org?node_id=89119


in reply to Re: (Golf) Kaprekar's Process
in thread (Golf) Kaprekar's Process

That's odd...I tried running this on my system. First I just did the map statement, and assigned 123 to x. This worked perfectly. So, I got a little confused as to why it worked for me, and not for you, so I tried to run the whole script. However--and this is quite a big however--it resulted in an infinite loop, printing out large, negative numbers on my machine. Is this the exact code?