Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: oneliner to get module version

by syphilis (Chancellor)
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).


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://771528]
[Eily]: I've posted my fourth root node on perlmonks and I haven't even been a monk for four years yet. I'm on fire \o/
[ambrus]: Eily: hmm... do you count your user and your scratchpad as root nodes you posted?
[Eily]: I would have if it had been convenient :P

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-03-24 14:40 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (304 votes). Check out past polls.