h2xs -X -n Foo::Bar Foo/Bar/Bar.pm perl Makefile.pl make (make install) puts everything in its right place Foo/Bar.pm