Reply most helpful. I was able to make the proper tests, and incorporate the detection of "undefined" stuff in my code.
Sorry if the example isn't that good. I tried to extract the pertinant stuff for the example. The intended application is a "tie" method for output (prints). It replaces the output method to stdout, and adds the time, and module/line as a prefix. It seems to work quite well, as we've put it in a bunch of scripts here. Efficient? I don't know, it does the job, and really isn't called that much. I suspect that being my first module, it refelcts my background ("...you can program in Fortran in any language.").