Produce right error msg for $ver < "version"
authorFather Chrysostomos <sprout@cpan.org>
Wed, 23 Nov 2011 17:48:01 +0000 (09:48 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 24 Nov 2011 09:45:28 +0000 (01:45 -0800)
commite7b3543f6af45d688fdf0fc6a64c6f9988436cc6
tree39fc5f2caab760f2c9134d1032f5c7defc047139
parent5bcd1ef4a02daf3152ee41becf0004a7e450d106
Produce right error msg for $ver < "version"

"version" was being treated as a version object and then failing
the validation check.  It should be treated as a string, just like
"versions":

$ perl5.15.4 -Ilib -e '$^V < "version"'
Invalid version object at -e line 1.

$ perl5.15.4 -Ilib -e '$^V < "versions"'
Invalid version format (dotted-decimal versions require at least three parts) at -e line 1.

See also perl #102586.
lib/version.t
universal.c