in reply to How Critical is Critic?

I was surprised at the number of complaints about eval $VERSION because I was sure I had seen it recommended somewhere (though I never chose to use it in my modules). Some searching shows eval $VERSION in modules? as a good discussion. Essentially, as I understand it, one might want the CPAN to see the underscore to tell that it's an alpha version, but want all the version tools to still compare correctly.

Replies are listed 'Best First'.
Re^2: How Critical is Critic?
by Bod (Parson) on May 29, 2023 at 17:45 UTC
    I was sure I had seen it recommended somewhere (though I never chose to use it in my modules)

    Exactly! It came from a recommendation...I cannot find it right now but I recall copying it from advice about module versioning.

    Essentially, as I understand it, one might want the CPAN to see the underscore to tell that it's an alpha version...

    And my version is 0.1_1!