app_perl: converted to the new module interface