There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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)? In reply to VERSION format & compare by perl-diddler
|
|