On Sat, Jul 21, 2012 at 04:47:13PM +0100, Richard McMahon wrote: > > OK, I will aim to use compatible RT API libraries. I can host more > than one version on the remote client if required. > > It would be useful to be able to determine the version of RT running > on the client and server via the API. I can use REST to determine > the > version of the RT on the remote version: > > e.g. http://..../REST/1.0 returns > > RT/3.8.HEAD 401 Credentials required > > Is there a way to access/report the RT version library verion from > within Perl. In Python I would use something like: > > print 'matplotlib.__version__: ', matplotlib.__version__
I'm running a dev version, but this gives you the idea: $ perl -Ilib -MRT -le 'print $RT::VERSION' 4.0.6-249-g8dbb7c5 -kevin
pgpGHtpp2Xzi3.pgp
Description: PGP signature
