Subject: | New warnings with perl5.10.0 |
With perl5.10.0 there are new warnings when loading the XBase module:
$ perl5.10.0 -MXBase -e1
Prototype mismatch: sub XBase::Base::O_BINARY () vs none at (eval 4) line 1.
Constant subroutine O_BINARY redefined at (eval 4) line 1.
I am not sure what's the best fix, but there seem to be two possibilities:
* do not import anything from IO::File, i.e. write "use IO::File ()"
* specify the prototype when defining the O_BINARY constant i.e.
eval ' sub O_BINARY () { 0 } '
Regards,
Slaven