Perl script not running on pumanew

Hello,
We have a script that has been running on puma for several years. The script was written in perl - I did not write the script so am not sure how to debug it.

Since moving to pumanew the script has stopped working. The line in the script it doesn’t like is:

use Switch;

The error message is:

Can’t locate Switch.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./prepare_the_arc4.pl line 14.
BEGIN failed–compilation aborted at ./prepare_the_arc4.pl line 14.

The script is /home/earjcti/prepare_the_arc4.pl

Can you help?
Thanks
Julia

PS Others in my research group also use this script so any help would be much appreciated.

Hi Julia,

Our sys admin is currently away, so we can’t fix the central installation at the moment.

As a temporary measure I have installed Switch.pm in my home directory.
If you:
export PERL5LIB=/home/ros/perl_modules/lib/perl5:$PERL5LIB
before running your script I think that should work.

Let me know how that goes.
Once Andy is back I will ask him to install the module centrally.

Regards,
Ros.