develooper Front page | perl.perl5.porters | Postings from September 2000

Autoloader in h2xs script

From:
Ajit Deshpande
Date:
September 24, 2000 16:02
Subject:
Autoloader in h2xs script
Message ID:
20000924191104.A5935@ns1.skycorp.net
Shouldn't the references to "require AutoLoader" in the h2xs script be
changed to "use AutoLoader"?

Ajit

--- h2xs	2000/09/24 22:22:21	1.1
+++ h2xs	2000/09/24 22:24:25
@@ -38,7 +38,7 @@
 =item B<-A>
 
 Omit all autoload facilities.  This is the same as B<-c> but also removes the
-S<C<require AutoLoader>> statement from the .pm file.
+S<C<use AutoLoader>> statement from the .pm file.
 
 =item B<-F>
 
@@ -395,11 +395,11 @@
 require DynaLoader;
 END
 
-# require autoloader if XS is disabled.
-# if XS is enabled, require autoloader unless autoloading is disabled.
+# use autoloader if XS is disabled.
+# if XS is enabled, use autoloader unless autoloading is disabled.
 if( ($opt_X && (! $opt_A)) || (!$opt_X) ) {
 	print PM <<"END";
-require AutoLoader;
+use AutoLoader;
 END
 }
 
@@ -408,7 +408,7 @@
 	if( ! $opt_X ) { # use DynaLoader, unless XS was disabled
 		print PM <<"END";
 
-\@ISA = qw(Exporter AutoLoader DynaLoader);
+\@ISA = qw(Exporter DynaLoader);
 END
 	}
 	else{



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About