Solution by Ruben Westerberg
ch-1.pl and ch-1.p6
===================
Run program do decode the mangled message!
ch-2.pl and ch-2.p6
===================
Run the program see which doors of the 500 doors are open. Each digit of the output represents a door. A 0 is a closed door and a 1 is an open door