Invalid version format (version required) at Module/Runtime.pm when executing a perl script that uses Elasticsearch.pm
You haven't posted your code, and this is the likely cause of the problem. But it seems you have a call in your code somewhere to use_module
from Module::Runtime.
The second argument, which is the version, is not in a valid format.
If you cannot solve it yourself from just this you will need to edit your question to include your code. At least the most likely section.
https://www.google.com.au/search?q=perl+invalid+version+format
https://stackoverflow.com/a/8204942/2313887
https://metacpan.org/source/ZEFRAM/Module-Runtime-0.014/lib/Module/Runtime.pm#L349
I forgot to close the question. Anyway, the solution is in the comment I wrote to Neil Lunn:
It was due to the module Elasticsearch.pm, whose version 1.0 is not compatible with new Runtime.pm. I wrote to the developer, and he fixed it. New version is on github elasticsearch-perl. –