Paste my code above into a separate script file (replacing "file" with your actual include), run it, and see what you get. This will eliminate your other dependencies from pissing over the test. If the sub still doesn't show up, we'll have to see the code in the include file, at minimum. Essentially, you want to "halve" the problem until you figure out what you broke.