I'm trying to figure out a way to include an RCS Revision keyword that sets a $VERSION value without getting any errors or warnings from perlcritic.
Currently, I use a technique to set $VERSION to the value of Revision that I found in the book Perl Medic by Peter J. Scott. For example, I have:
This works fine, but Miscellanea::RequireRcsKeywords gives me an error because it can't find the Revision keyword. I assume it's just looking in strings or comments. In the documentation for
Miscellanea::RequireRcsKeywords, they give an example to do the above using the construction:
That works fine for me but now ValuesAndExpressions::ProhibitInterpolationOfLiterals gives me a warning that I have string that may require interpolation.
I'd like to try to find a way to do this that makes perlcritic happy. I suppose I could the first method and also stick a Revision keyword in a comment, but I would like to know if there's a way to do it more elegantly.