Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: (Golf) Kaprekar's Process

by sean (Beadle)
on Jun 17, 2001 at 09:22 UTC ( [id://89139] : note . print w/replies, xml ) Need Help??


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

Your map statement is working fine. The problem is that you have assigned a value to "$,", which is the output field separator variable. Its value is printed when you use a comma in a print statement.
$,="bar"; print "foo","baz";
will output:
foobarbaz
--sean