in reply to Object oriented mess

Your question has nothing to do with OOP.

You should read up on the use of use and require as well as on the use of subroutines (perlsub) before starting with OOP.

Paul