laziness, impatience, and hubris | |
PerlMonks |
Re: test for non perl command dependencyby Crackers2 (Parson) |
on Jul 14, 2009 at 05:02 UTC ( [id://779787]=note: print w/replies, xml ) | Need Help?? |
Not really an answer to your question, but... I've found that in most cases checking for a minimum version isn't as useful as it seems, for one or more of the reasons below:
In most cases if an external tool doesn't support a feature it'll probably exit with an error when you call it, and you can just print an error at that point. If it's really important to know in advance, do a test for the actual feature, not just a version number. And, even though people might not read it, clearly add the dependencies to the documentation.
In Section
Seekers of Perl Wisdom
|
|