It has been a little while since I looked at any custom Perl code, so just a quick reminder on how to get custom Perl modules to work when they are outside of the distributions standard paths.
Perl modules are loaded from the included library path "@INC", to check what paths this points to use
perl -le 'print foreach @INC'
This set of library paths can then be extended by using the environment variable PERL5LIB e.g.
PERL5LIB='<custom library path>'; export PERL5LIB
While looking at some code I noticed that in insert mode in vim my cursor keys were producing unwanted input, to solve this add the following to your .vimrc file
set nocompatible