Er... If CPAN.pm installed the modules in /usr/local/lib in subdirectories named 5.6.1 and i686-linux, it's because the perl that was used was 5.6.1, configured for /usr/local/lib and i686-linux. So, instead of messing around with @INC, why don't you just use the same perl executable that was used to install the modules?