in reply to Design pattern factory : use lib issue on lib directory

What is the namespace of the loaded file?

In Perl , the filename and the namespace of the loaded class(es) can be different. If you didn't change the contents of the file Greet/Repeat.pm when you moved it to lib/Repeat.pm, it will still fill in a namespace Great::Repeat.

Also see Module::Pluggable.