in reply to A shebang line conundrum

if there are few machines, a symbolic link should IMO do it (give it a try, i don't know it since i can't test it)
ln -s /usr/local/bin/perl /usr/bin/perl
on the sgi's and then change everything to /usr/bin/perl.

HTH