Andreas, thanks, but this is catching the problem at runtime. Ideally what I would like is a warning/error when referencing a sub which is not already defined. I'm sure this isn't possible in the general case, but perhaps it is possible for code similar to my simple example?
--Ben