in reply to How can I programmatically install a module from file.

See ExtUtils::Install , ExtUtils::Installed

But for me manually installing the perl modules using
perl Makefile.PL make make test make install
is much better method.
A perl Script without 'strict' is like a House without Roof; Both are not Safe;