http://www.perlmonks.org?node_id=872025


in reply to Need to turn off prints from module

If you can identify the point in the code where this is happening, you can selectively turn off this specific warning type with:

no warnings 'misc'; # problem code here use warnings 'misc';

Be aware this turns off all 'misc' warnings between no warnings 'misc'; and use warnings 'misc';.

If you look in perldiag, you can do a search for 'Version string' which finds:

Version string '%s' contains invalid data; ignoring: '%s'
(W misc) The version string contains invalid characters at the end, which are being ignored.

The "(W misc)" tells you which warning to turn off.

perllexwarn describes all the warning types.

-- Ken