in reply to Re^5: A curious case of of my()in thread A curious case of of my()
see Re^2: how to use packages as classes in perl? for an example
EDIT: resolving duplicate post problem by splitting information.