use Mapps::Auth ; $auth = new Mapps::Auth->auth($uname, $passwd); ...