#
# Tim.Bunce@ig.co.uk, August 1994
+use vars qw($VERSION @ISA) ;
+
require Carp;
require Config;
require AutoLoader;
@ISA=qw(AutoLoader);
-$VERSION = $VERSION = "1.00" ;
+$VERSION = "1.00" ;
sub import { } # override import inherited from AutoLoader
=cut
+use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $AUTOLOAD);
+
require Exporter;
use AutoLoader;
require DynaLoader;
@ISA = qw(Exporter DynaLoader);
-$VERSION = $VERSION = "1.00";
+$VERSION = "1.00";
# Items to export into callers namespace by default
# (move infrequently used names to @EXPORT_OK below)
@EXPORT =
);
sub AUTOLOAD {
- local($constname);
+ my($constname);
($constname = $AUTOLOAD) =~ s/.*:://;
- $val = constant($constname, @_ ? $_[0] : 0);
+ my $val = constant($constname, @_ ? $_[0] : 0);
if ($! != 0) {
if ($! =~ /Invalid/) {
$AutoLoader::AUTOLOAD = $AUTOLOAD;
goto &AutoLoader::AUTOLOAD;
}
else {
- ($pack,$file,$line) = caller;
+ my ($pack,$file,$line) = caller;
die "Your vendor has not defined Fcntl macro $constname, used at $file line $line.
";
}
goto &$AUTOLOAD;
}
-bootstrap Fcntl;
+bootstrap Fcntl $VERSION;
# Preloaded methods go here. Autoload methods go after __END__, and are
# processed by the autosplit program.
WriteMakefile(
MAN3PODS => ' ', # Pods will be built by installman.
XSPROTOARG => '-noprototypes', # XXX remove later?
+ VERSION_FROM => 'FileHandle.pm',
);
package POSIX;
+use vars qw($VERSION @ISA %EXPORT_TAGS @EXPORT_OK $AUTOLOAD);
+
use Carp;
use AutoLoader;
require Config;
require DynaLoader;
@ISA = qw(Exporter DynaLoader);
-$VERSION = $VERSION = "1.00" ;
+$VERSION = "1.00" ;
%EXPORT_TAGS = (
}
-bootstrap POSIX;
+bootstrap POSIX $VERSION;
my $EINVAL = constant("EINVAL", 0);
my $EAGAIN = constant("EAGAIN", 0);
package Safe;
+
+use vars qw($VERSION @ISA @EXPORT_OK);
+
require Exporter;
require DynaLoader;
use Carp;
-$VERSION = $VERSION = "1.00";
+$VERSION = "1.00";
@ISA = qw(Exporter DynaLoader);
@EXPORT_OK = qw(op_mask ops_to_mask mask_to_ops opcode opname opdesc
MAXO emptymask fullmask);
return safe_call_sv($root, $mask, $evalsub);
}
-bootstrap Safe;
+bootstrap Safe $VERSION;
$default_mask = fullmask;
my $name;
package Socket;
-$VERSION = $VERSION = "1.5";
+
+use vars qw($VERSION @ISA @EXPORT);
+$VERSION = "1.5";
=head1 NAME
sub AUTOLOAD {
- local($constname);
+ my($constname);
($constname = $AUTOLOAD) =~ s/.*:://;
- $val = constant($constname, @_ ? $_[0] : 0);
+ my $val = constant($constname, @_ ? $_[0] : 0);
if ($! != 0) {
if ($! =~ /Invalid/) {
$AutoLoader::AUTOLOAD = $AUTOLOAD;
goto &AutoLoader::AUTOLOAD;
}
else {
- ($pack,$file,$line) = caller;
+ my ($pack,$file,$line) = caller;
croak "Your vendor has not defined Socket macro $constname, used";
}
}
goto &$AUTOLOAD;
}
-bootstrap Socket;
+bootstrap Socket $VERSION;
# Preloaded methods go here. Autoload methods go after __END__, and are
# processed by the autosplit program.
package Devel::SelfStubber;
require SelfLoader;
@ISA = qw(SelfLoader);
+@EXPORT = 'AUTOLOAD';
$JUST_STUBS = 1;
$VERSION = 1.01; sub Version {$VERSION}