SystemTap hooks in Perl
Peter Edwards
peter at dragonstaff.co.uk
Tue Mar 8 22:01:22 GMT 2011
On 8 March 2011 20:18, James Laver <london.pm at jameslaver.com> wrote:
> On Tue, Mar 08, 2011 at 05:45:46PM +0000, Peter Edwards wrote:
> > Anyone got recommendations for best practices for using perlbrew and
> > local::lib?
> >
> > Used together they don't play nicely with the Cwd.so in my developer
> sandbox
> > local::lib which is compiled for 5.8.8.
> > I guess I'd need a separate local lib for each perl version and have
> > perlbrew switch the env vars for those at the same time it fiddles with
> the
> > perl interpreter settings or symlinks?
> >Which is why perlbrew essentially does this automatically. You have a
> library hierarchy for each perl version, so just cut local::lib out of
> the equation and use that. Alternatively, you could just write a wrapper
> script to switch it and that would not only switch it in perlbrew but
> also change the environment variables for local::lib.
>
>
> Ah thanks James. Since we use multiple local libs for different apps then I
can't use the perl version-specific library so I think I'll have to go for
your suggestion of a wrapper script for switching. I thought I'd check
before writing such a beastie or looking at a patch in case other users of
perlbrew had come across a similar problem, which if you're using a
heterogenous environment with multiple apps is very likely.
Regards, Peter
More information about the london.pm
mailing list