in reply to the Magic Box system? (use require)
I'd recommend turning the function into a module. The easiest way to do this is to create a skeleton module using h2xs and then copy your code into the skeleton.