Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: whichpm

by PodMaster (Abbot)
on Jul 16, 2003 at 11:07 UTC ( #274766=note: print w/replies, xml ) Need Help??

in reply to whichpm

I recently ran accross Module::InstalledVersion, somewhat similar in its purpose. Neither you nor it pay attention to the dynamic environment variables PERLLIB, PERL5LIB. Just letting you know ;)

Also, you've already got the pod, so The Dynamic Duo --or-- Holy Getopt::Long, Pod::UsageMan! ;)

update: duuuuh, I think what I was trying to say is that maybe you shouldn't be actually requireing the module, kinda like what Module::Info info does (hey, you could use Module::Info), but since you're actually editing it ++/duck

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: whichpm
by belg4mit (Prior) on Jul 16, 2003 at 13:43 UTC
    I had actually thought about these vars, but assumed that require would handle the magic. I'll test it, if it doesn't it's a simple matter of a BEGIN block to split the vars and <s>push</s> unshift them onto @INC.

    UPDATE: As Aristotle got around to showing before I did, the vars are heeded

    Oh umm, okay... Why not? I actually used require intentionally. Let perl do the heavy lifting ;-) It even works for broken modules which don't return true (but not null length files).

    I'm not belgian but I play one on TV.

Re^2: whichpm
by Aristotle (Chancellor) on Jul 16, 2003 at 13:50 UTC
    $ PERL5LIB="--->HERE<---" perl -le'print "@INC\n"' --->HERE<--- /usr/lib/perl5/5.8.0/i386-linux /usr/lib/perl5/5.8.0 /usr +/lib/perl5/site_perl/5.8.0/i386-linux /usr/lib/perl5/site_perl/5.8.0 +/usr/lib/perl5/site_perl .

    Makeshifts last the longest.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://274766]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2018-03-17 10:37 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (223 votes). Check out past polls.