From: Zefram Date: Mon, 24 May 2010 11:38:24 +0000 (-0400) Subject: Add package block syntax to perldelta X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f5d8aca1e51e677519775b879a4d41b6f78d07d2;p=p5sagit%2Fp5-mst-13.2.git Add package block syntax to perldelta --- diff --git a/pod/perl5132delta.pod b/pod/perl5132delta.pod index 549b70a..fe457730 100644 --- a/pod/perl5132delta.pod +++ b/pod/perl5132delta.pod @@ -43,6 +43,14 @@ the copy and returns the result. The original remains unmodified. This is particularly useful with C. See L for more examples. +=head2 package block syntax + +A package declaration can now contain a code block, in which case the +declaration is in scope only inside that block. So C +is precisely equivalent to C<{ package Foo; ... }>. It also works with +a version number in the declaration, as in C. +See L. + =head1 New Platforms XXX List any platforms that this version of perl compiles on, that previous