doFILE; executes the Perl script as though it were actually a part of your currently running script. You might be looking to execute it using system() or the backticks instead. Or even open a pipe to it. See system, perlop (the section about the backtick operators), open for more details.