I need to test a perl script in a remote server. I tried running it but i got the error
Can't locate Date/Manip.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .
So I downloaded the DateManip.pm file and tried to copy it in one of the locations mentioned. But I don’t have permission to copy the file in any of these places. Is there a way I can have this *.pm file in my own directory and call it from there or do I HAVE to put it in one of those locations?
The correct way to do this is install DateManip.pm obviously, however if you cannot for some reason do that, then you can copy the module to any directory you have write permissions to and modify the perl script to include the following:
<relative_path_to_module>is the relative path to the directory where DateManip.pm is located. So if the relative path to the module is ../lib, you would have