I am using Windows operating system and i have my running perl script.In my script Path::Class::Rule
module i am using .
My script is not able to run, on some of the system, because the above mentioned module is not installed.So i need to add a logic for pre-setup which will check whether all the required module is installed on the system or not if not then install the module first then do rest of the processing.
I am trying to install the module using system subroutine
but perl modules are not getting install.
Here is the code which i am using:
use warnings;
use Path::Class;
use Path::Class::Rule;
use Cwd qw();
use File::Path qw(make_path);
use File::Copy;
system ("ppm install Path::Class::Rule");
can any body help me out how to add the logic ?