This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Explain that the load_module() import list must be NULL terminated
authorJan Dubois <jand@activestate.com>
Sat, 15 Aug 2009 00:57:45 +0000 (17:57 -0700)
committerJan Dubois <jand@activestate.com>
Sat, 15 Aug 2009 00:57:45 +0000 (17:57 -0700)
op.c

diff --git a/op.c b/op.c
index a28e477..b4a9fe2 100644 (file)
--- a/op.c
+++ b/op.c
@@ -3962,7 +3962,11 @@ PERL_LOADMOD_DENY, PERL_LOADMOD_NOIMPORT, or PERL_LOADMOD_IMPORT_OPS
 (or 0 for no flags). ver, if specified, provides version semantics
 similar to C<use Foo::Bar VERSION>.  The optional trailing SV*
 arguments can be used to specify arguments to the module's import()
-method, similar to C<use Foo::Bar VERSION LIST>.
+method, similar to C<use Foo::Bar VERSION LIST>.  They must be
+terminated with a final NULL pointer.  Note that this list can only
+be omitted when the PERL_LOADMOD_NOIMPORT flag has been used.
+Otherwise at least a single NULL pointer to designate the default
+import list is required.
 
 =cut */