-#
-
package IO::File;
=head1 NAME
use vars qw($VERSION @EXPORT @EXPORT_OK $AUTOLOAD);
use Carp;
use Symbol;
-use English;
use SelectSaver;
use IO::Handle qw(_open_mode_string);
use IO::Seekable;
@EXPORT = @IO::Seekable::EXPORT;
-################################################
-## If the Fcntl extension is available,
-## export its constants.
-##
-
sub import {
my $pkg = shift;
my $callpkg = caller;
- Exporter::export $pkg, $callpkg;
+ Exporter::export $pkg, $callpkg, @_;
+
+ #
+ # If the Fcntl extension is available,
+ # export its constants for sysopen().
+ #
eval {
require Fcntl;
- Exporter::export 'Fcntl', $callpkg;
+ Exporter::export 'Fcntl', $callpkg, '/^O_/';
};
-};
+}
################################################