#Determine 1 path, except for cwd (current working directory), #Where perl looks for libraries: my $libPath = ''; for(@INC){ unless($_ eq '.'){ $libPath = $_; last; } } #Then, install the library, that will determain all the OS specific paths, #that can be used for further execution and installation of perl program.