in reply to Passing command-line arguments to a file

Now that I'm a bit more clear-headed than I was at 3am, I'll rephrase the question:

Does anyone know how to force a file, called with the require function, to output to a file instead of to the default, STDOUT?