in reply to subroutine ref while "strict refs"

Re your overall approach: it looks as though you're trying to develop a concept which is already extant in modules.

See Modules: How to Create, Install, and Use in Tutorials.

Reading Subroutines in the same section might also be profitable.