in reply to Problem in installation of a Perl Module

just do this, in your shell (I assume bash):
export PERL5LIB=~/lib
and then do the perl Makefile.PL