in reply to Nested subroutines and access to variables in an outer scope
See also this fairly complete explanation from the mod_perl Guide. This happens frequently in code run under Apache::Registry.