On Thu, Nov 04, 2004 at 02:39:00PM +0300, Odhiambo Washington wrote: > * Tim Bunce <[EMAIL PROTECTED]> [20041104 12:56]: wrote: > > Use trace() an post (an _extract_ of) the log. > > Don't forget to include relevant version numbers > > ("perl -MDBI -e 'DBI->installed_versions'" will help). > > I am not yet a perl programmer, but I am interested in something to do > with the above line. > > If I know that a module named WASH::Sucks is installed on my system, > is there a standard command/method/way (what do I call it) of querying > the installed version of WASH::sucks ???
For a quick check I tend to do: $ perl -MWASH::Sucks=9999 WASH::Sucks 9999 required--this is only version 1.44 (/path/to/WASH/Sucks.pm) at - line 0 BEGIN failed--compilation aborted. It's quick and shows the installed path as well. You can also do: $ perl -MWASH::Sucks -e 'die $WASH::Sucks::VERSION' or $ perl -MWASH::Sucks -e 'die WASH::Sucks->VERSION' Tim.