in reply to Re: Golf code in perlin thread Golf code in perl
print<>!~($/=$")+2*map 1..$s{$_%$'}++,<>