|Do you know where your variables are?|
Leveraging centralised shared perl version?by kenm (Acolyte)
|on May 07, 2013 at 16:58 UTC||Need Help??|
kenm has asked for the
wisdom of the Perl Monks concerning the following question:
Good evening Monks,
Long time lurker, posted the odd question.
I've done quite a bit of digging both on perlmonks and googling and thought I'd ask the question.
To give some background. We have a very wide range of perl scripts with typically hard coded shebang lines executed on a large number of machines.... number of scripts in the thousands (if not tens of thousands) and number of machines in the hundreds. Hence upgrading and managing Perl binary across all machines is probably not feasible.
Our range of locally installed Perl ranges between Perl 5.6 -> 5.8.6 -> 5.8.8 and now also Perl 5.10. We also have a range of OSs, SunOS, Linux, HPUX, AIX and Windows.
Naturally this is far from ideal and I'd like to leverage centralized shared Perl version across all scripts and boxes. Naturally an appropriate Perl binary for the relevant OS.
I'd ideas around dynamically replacing the shebang line to point towards an appropriate Perl binary on a shared drive but not sure if that's the best option.
Wanted to pop it out here to get a handle on others experiences and viewpoints.Thanks Perl Monks! Appreciate it.