From a1834a8ee289b1433049c65a0b29ec7c74ed44db Mon Sep 17 00:00:00 2001 From: David Golden Date: Wed, 22 Jul 2009 17:18:14 -0400 Subject: document new package NAMESPACE VERSION syntax in perlfunc --- pod/perlfunc.pod | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 23e5535e4f..891727a5a4 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4072,8 +4072,10 @@ Examples: The same template may generally also be used in unpack(). +=item package NAMESPACE VERSION +X X X X + =item package NAMESPACE -X X X =item package @@ -4093,6 +4095,11 @@ If the package name is null, the C
package as assumed. That is, C<$::sail> is equivalent to C<$main::sail> (as well as to C<$main'sail>, still seen in older code). +If VERSION is provided, C also sets the C<$VERSION> variable in the +given namespace. VERSION must be be a numeric literal or v-string; it is +parsed exactly the same way as a VERSION argument to C. +C<$VERSION> should only be set once per package. + See L for more information about packages, modules, and classes. See L for other scoping issues. -- cgit v1.2.1