Your skill will accomplish what the force of many cannot |
|
PerlMonks |
VERSION format & compareby perl-diddler (Chaplain) |
on Sep 19, 2017 at 21:48 UTC ( [id://1199696]=perlquestion: print w/replies, xml ) | Need Help?? |
perl-diddler has asked for the wisdom of the Perl Monks concerning the following question:
I wanted to make sure a changed library mod was included, so I bumped the version.
My mod:
The prog: I get no error. I vaguely remember that I was told that as long as the version strings were of the same format -- like a quoted literal, or a 'v' string, they'd compare correctly (I thought). In fact, the problem seems to lie in the 'use-ing' prog. The version check works whether the module has quotes (or not), but the version check is ignored if the 'using' prog has a version in quotes in the same format as in the module. Why doesn't this work? I.e. if a prog that is using a module uses the same version format as is used in the module, why doesn't compare happen correctly? Does anyone think it would be worth asking for a "enhancement" on version checks to allow a quoted version string to work the same as if it was unquoted (or if it is in the same format used in the module)?
Back to
Seekers of Perl Wisdom
|
|