<?xml version="1.0" encoding="windows-1252"?>
<node id="771461" title="oneliner to get module version" created="2009-06-14 15:35:38" updated="2009-06-14 15:35:38">
<type id="1980">
snippet</type>
<author id="709818">
sflitman</author>
<data>
<field name="doctext">
</field>
<field name="snippetdesc">
Sometimes it helps to have a quickie way to get the version from a module.  This lets me do it from the command line.</field>
<field name="snippetcode">
&lt;CODE&gt;
# PUT IN .bashrc FILE

perlver() {
   local m=$1
   perl -M$m -e "print $m-&gt;VERSION,qq{\n};"
}

# EXECUTE FROM COMMAND LINE AS perlver &lt;module&gt;
&lt;/CODE&gt;</field>
</data>
</node>
