Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: oneliner to get module version

by syphilis (Canon)
on Jun 15, 2009 at 03:31 UTC ( #771528=note: print w/ replies, xml ) Need Help??


in reply to oneliner to get module version

Nice idea - and I've just stuck it in my bashrc on my linux box, where it's working fine.

However, in the form in which you've posted it, it won't work with Parse::RecDescent, Inline::C and (probably) some of the other Inline::* modules. So instead, I've written the perl command as:

perl -le "require $m;print $m->VERSION"
and that seems to work fine for *all* modules (the ones I tested, at least).

Cheers,
Rob


Comment on Re: oneliner to get module version
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-07-05 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls