<?xml version="1.0" encoding="windows-1252"?>
<node id="771528" title="Re: oneliner to get module version" created="2009-06-14 23:31:24" updated="2009-06-14 23:31:24">
<type id="11">
note</type>
<author id="524150">
syphilis</author>
<data>
<field name="doctext">
Nice idea - and I've just stuck it in my bashrc on my linux box, where it's working fine.&lt;br&gt;&lt;br&gt;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:
&lt;c&gt;
perl -le "require $m;print $m-&gt;VERSION"
&lt;/c&gt;
and that seems to work fine for *all* modules (the ones I tested, at least).&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Rob

</field>
<field name="root_node">
771461</field>
<field name="parent_node">
771461</field>
</data>
</node>
