"Overlay Platform" prototype in Perl (without modules)