Just a guess, but try modifying your perl script to point to the subdomian. Not knowing what your perl script does exactly, I would think you'd want to also include the master domain too in that script.