[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
various FileHandle vs IO::File bugs
There seem to be some conflicts here:
% ./perl -e 'use FileHandle; use IO::File'
Prototype mismatch: sub main::SEEK_SET vs () at blib/Exporter.pm line 57.
Exporter::import('SEEK_SET', 'SEEK_CUR', 'SEEK_END', 'O_ACCMODE', 'O_APPEND', 'O_ASYNC', 'O_BINARY', 'O_CREAT', ...) called at -e line 1
main::BEGIN() called at -e line 1
eval '0' called at -e line 1
Prototype mismatch: sub main::SEEK_CUR vs () at blib/Exporter.pm line 57.
Exporter::import('SEEK_SET', 'SEEK_CUR', 'SEEK_END', 'O_ACCMODE', 'O_APPEND', 'O_ASYNC', 'O_BINARY', 'O_CREAT', ...) called at -e line 1
main::BEGIN() called at -e line 1
eval '0' called at -e line 1
Prototype mismatch: sub main::SEEK_END vs () at blib/Exporter.pm line 57.
Exporter::import('SEEK_SET', 'SEEK_CUR', 'SEEK_END', 'O_ACCMODE', 'O_APPEND', 'O_ASYNC', 'O_BINARY', 'O_CREAT', ...) called at -e line 1
main::BEGIN() called at -e line 1
eval '0' called at -e line 1
% perl -e 'use IO::File; use FileHandle'
Constant subroutine SEEK_SET redefined at -e line 1
Prototype mismatch: sub main::SEEK_SET () vs none at -e line 1
Constant subroutine SEEK_CUR redefined at -e line 1
Prototype mismatch: sub main::SEEK_CUR () vs none at -e line 1
Constant subroutine SEEK_END redefined at -e line 1
Prototype mismatch: sub main::SEEK_END () vs none at -e line 1
Or using the new warnings stuff:
% perl -W -e 'use IO::File; use FileHandle'
Constant subroutine SEEK_SET redefined at -e line 1
Prototype mismatch: sub main::SEEK_SET () vs none at -e line 1
Constant subroutine SEEK_CUR redefined at -e line 1
Prototype mismatch: sub main::SEEK_CUR () vs none at -e line 1
Constant subroutine SEEK_END redefined at -e line 1
Prototype mismatch: sub main::SEEK_END () vs none at -e line 1
% perl -X -e 'use IO::File; use FileHandle'
Constant subroutine SEEK_SET redefined at -e line 1
Constant subroutine SEEK_CUR redefined at -e line 1
Constant subroutine SEEK_END redefined at -e line 1
Also, shouldn't the last *not* show warnings? I thought -X turned
everything off. And how come -X isn't like "no warnings" or "no warnings
'all'", both of which produce the output from the penultimate example,
not that from the last one?
--tom
PS: This is all under 5.005_63, BTW.
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]