Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perl Script Portability and Future Proofing

Due to pressure from outside our group, we have to port over one hundred Perl scripts from Sparc to x86. This means changing dozens of shebang lines from #!/home/Perl/bin/perl -w to something else, which is a real pain. What is good way to do this (I can't find anything on Lycos)?

Also what happens when we're forced to move from x86 to something else (like Cray, I suppose)? Is there some way to "future-proof"?

like image 247
Ariel Bold Avatar asked Aug 17 '10 23:08

Ariel Bold


1 Answers

This is one reason many people advocate using #!/usr/bin/env perl instead of #!/usr/bin/perl:

like image 58
Chas. Owens Avatar answered Oct 23 '22 00:10

Chas. Owens