In the cpan shell,
type the following command with the specific path where you need to update the core modules
cpan> o conf makepl_arg PREFIX='<dir path>'
cpan> o conf commit
Default lib path will be changed after this command..
Lemme know if it works