in reply to Getting a list of sub routines

Store the functions in a hash with their names as the keys.

Solves scoping issues, keeps everything in one place, easy to extend, won't mysteriously break if you reformat the source.