Recently while I am trying to reuse a perl scrip I got an error saying “Can’t locate XML/Simple.pm in @INC”.
Following is complete error message:
Can’t locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .)
After debugging for a while I got to know is XML/Simple.pm module is available in “libxml-simple-perl”, I installed libxml-simple-perl module and re-executed script, the script worked without any issue.
Use following command to install libxml-simple-perl module:
$ sudo apt-get install libxml-simple-perl