p4raw-id: //depot/perl@26780
its equivalent C<BEGIN> block found an internal inconsistency with
the version number.
+=item Version string '%s' contains invalid data; ignoring: '%s'
+
+(W misc) The version string contains invalid characters, so it is
+being ignored.
+
=item v-string in use/require is non-portable
(W portable) The use of v-strings is non-portable to older, pre-5.6, Perls.
version = savepv(SvPV_nolen(ver));
}
s = scan_version(version, ver, qv);
- if ( *s != '\0' )
- Perl_warn(aTHX_ "Version string '%s' contains invalid data; "
- "ignoring: '%s'", version, s);
+ if ( *s != '\0' )
+ if(ckWARN(WARN_MISC))
+ Perl_warner(aTHX_ packWARN(WARN_MISC),
+ "Version string '%s' contains invalid data; "
+ "ignoring: '%s'", version, s);
Safefree(version);
return ver;
}