=cut
use strict;
-our($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS, $AUTOLOAD);
+our($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
require Exporter;
require XSLoader;
O_NOTRANS
), map {@{$_}} values %EXPORT_TAGS);
-sub AUTOLOAD {
- (my $constname = $AUTOLOAD) =~ s/.*:://;
- die "&Fcntl::constant not defined" if $constname eq 'constant';
- constant($constname);
-}
-
1;
{name=>"SEEK_END", default=>["IV", "2"]},
{name=>"_S_IFMT", macro=>"S_IFMT", value=>"S_IFMT"});
WriteConstants(
- PROXYSUBS => {croak_on_error => 1},
+ PROXYSUBS => {autoload => 1},
NAME => 'Fcntl',
NAMES => \@names,
);
package File::Glob;
use strict;
-our($VERSION, @ISA, @EXPORT_OK, @EXPORT_FAIL, %EXPORT_TAGS,
- $AUTOLOAD, $DEFAULT_FLAGS);
+our($VERSION, @ISA, @EXPORT_OK, @EXPORT_FAIL, %EXPORT_TAGS, $DEFAULT_FLAGS);
require XSLoader;
use feature 'switch';
} @_);
}
-sub AUTOLOAD {
- # This AUTOLOAD is used to 'autoload' constants from the constant()
- # XS function.
-
- my $constname;
- ($constname = $AUTOLOAD) =~ s/.*:://;
- constant($constname);
-}
-
XSLoader::load();
$DEFAULT_FLAGS = GLOB_CSH();
}
WriteConstants(
- PROXYSUBS => {croak_on_error => 1},
+ PROXYSUBS => {autoload => 1},
NAME => 'File::Glob',
NAMES => [qw(GLOB_ABEND GLOB_ALPHASORT GLOB_ALTDIRFUNC GLOB_BRACE GLOB_ERR
GLOB_LIMIT GLOB_MARK GLOB_NOCASE GLOB_NOCHECK GLOB_NOMAGIC
our $VERSION = '0.07';
-sub AUTOLOAD {
- # This AUTOLOAD is used to 'autoload' constants from the constant()
- # XS function.
-
- my $constname;
- our $AUTOLOAD;
- ($constname = $AUTOLOAD) =~ s/.*:://;
- croak "&I18N::Langinfo::constant not defined" if $constname eq 'constant';
- constant($constname);
-}
-
XSLoader::load();
1;
foreach qw (CRNCYSTR THOUSEP RADIXCHAR);
ExtUtils::Constant::WriteConstants(
- PROXYSUBS => {croak_on_error => 1},
+ PROXYSUBS => {autoload => 1},
NAME => 'I18N::Langinfo',
NAMES => \@names,
);
foreach qw(INADDR_ANY INADDR_LOOPBACK INADDR_NONE INADDR_BROADCAST);
WriteConstants(
- PROXYSUBS => {croak_on_error => 1},
+ PROXYSUBS => {autoload => 1},
NAME => 'Socket',
NAMES => \@names,
);
}
}
-sub AUTOLOAD {
- my($constname);
- ($constname = $AUTOLOAD) =~ s/.*:://;
- croak "&Socket::constant not defined" if $constname eq 'constant';
- constant($constname);
-}
-
XSLoader::load();
1;