in reply to perl module Checking

Assuming you know the name of the module, and assuming a *nix OS:
$ perl -MXML::Twig -e 1

will return nothing if XML::Twig is installed, or it will complain if it is not installed. See perlrun.