in reply to Can I write a transparent shell wrapper to start the correct build of Perl?
What if you go the other way? At the top of your perl scripts put this:
Admittedly, it's not as pretty as having all that ugliness hidden away in a separate, single location, but other than that, it may actually work.#!/bin/sh eval '. /etc/host.conf; exec /nfs/perl/5.10/${HOST_PLATFORM}/bin/perl +-S $0 ${1+"$@"}' if 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can I write a transparent shell wrapper to start the correct build of Perl?
by thparkth (Beadle) on Feb 05, 2008 at 16:41 UTC |