in reply to MakeMaker custom directory

P- you can change the target of the make install by running,for example, somewhere in your home dir:
$perl Makefile.PL INSTALL_BASE=~/perl/xlib $make $make test $make install . . . perl -I~/perl/xlib/lib script

where the module install will start at ~/perl/xlib/lib/...

so, you need to pre-pend this directory to @INC using the -I on the command line or use lib DIR;

Please consult the document for module ExtUtils::MakeMaker