# Perl script not running on pumanew

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/perl-script-not-running-on-pumanew/811>\
**Category:** Uncategorized\
**Tags:** PUMA\
**Created:** [24 November 2022 14:31 UTC](https://cms-helpdesk.ncas.ac.uk/t/perl-script-not-running-on-pumanew/811 "2022-11-24T14:31:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@Julia](https://cms-helpdesk.ncas.ac.uk/u/Julia)\
**Post date:** [24 November 2022 14:31 UTC](https://cms-helpdesk.ncas.ac.uk/t/perl-script-not-running-on-pumanew/811/1 "2022-11-24T14:31:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)\
**Post date:** [24 November 2022 15:13 UTC](https://cms-helpdesk.ncas.ac.uk/t/perl-script-not-running-on-pumanew/811/2 "2022-11-24T15:13:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@Julia](https://cms-helpdesk.ncas.ac.uk/u/Julia)\
**Post date:** [28 November 2022 10:56 UTC](https://cms-helpdesk.ncas.ac.uk/t/perl-script-not-running-on-pumanew/811/3 "2022-11-28T10:56:42Z")

</div>

Thanks Ros, that all works great!  
Julia

---

<div class="post-metadata">

**Author:** ![Julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@Julia](https://cms-helpdesk.ncas.ac.uk/u/Julia)\
**Post date:** [16 January 2023 13:48 UTC](https://cms-helpdesk.ncas.ac.uk/t/perl-script-not-running-on-pumanew/811/4 "2023-01-16T13:48:13Z")

</div>

Hello,  
I am just following up on this message from last year.  
I am still using the temporary measure suggested to use Switch.pm, and it still works fine. However just wondering whether there are still plans to install the module more centrally.  
Many thanks  
Julia
