in reply to how to use packages as classes in perl?
toolic covered it but you may also want to read: Lexical scoping like a fox