Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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.


Comment on Re: whichpm
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
    Oh?
    $ 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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://274766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-08-29 01:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls