Is there an easy way to get the version of python from a perl script. E.g. Get the equivalent of the version python -V
. I need this to determine if I need to run python26
or just python
on some of my linux boxes.
If there isn't an easy way, I plan to run the python -V
then capture stdout and parse it.