in reply to Determining Installed Twig Version

To get the version of the module you can do:

perl -MXML::Twig -e'print $XML::Twig::VERSION'
This should work with most modules as all are supposed to have $VERSION defined.

/J\

Replies are listed 'Best First'.
Re^2: Determining Installed Twig Version
by diotalevi (Canon) on Jul 28, 2004 at 15:51 UTC

    This also works and is slightly more functional if the previous version doesn't work. The difference is that if the version isn't declared exactly where you guessed at, this will look around in some other places to find it.

    perl -MXML::Twig -le 'print XML::Twig->VERSION'