From: Gurusamy Sarathy Date: Mon, 21 Feb 2000 18:37:38 +0000 (+0000) Subject: clarify "use Module VERSION LIST" (from Robin Barker) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f6c8478cc6cfc17dcb81770ef59a5e1c39269012;p=p5sagit%2Fp5-mst-13.2.git clarify "use Module VERSION LIST" (from Robin Barker) p4raw-id: //depot/perl@5184 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 42bbd46..ae1f442 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -5229,12 +5229,14 @@ Note the LIST is prepended whole, not one element at a time, so the prepended elements stay in the same order. Use C to do the reverse. +=item use Module VERSION LIST + +=item use Module VERSION + =item use Module LIST =item use Module -=item use Module VERSION LIST - =item use VERSION Imports some semantics into the current package from the named module, @@ -5279,8 +5281,11 @@ If the VERSION argument is present between Module and LIST, then the C will call the VERSION method in class Module with the given version as an argument. The default VERSION method, inherited from the Universal class, croaks if the given version is larger than the -value of the variable C<$Module::VERSION>. (Note that there is not a -comma after VERSION!) +value of the variable C<$Module::VERSION>. + +Again, there is a distinction between omitting LIST (C called +with no arguments) and an explicit empty LIST C<()> (C not +called). Note that there is no comma after VERSION! Because this is a wide-open interface, pragmas (compiler directives) are also implemented this way. Currently implemented pragmas are: