Moved MyClass.pm into lib directory. Turned main.pl into a test.