From f5d8aca1e51e677519775b879a4d41b6f78d07d2 Mon Sep 17 00:00:00 2001 From: Zefram Date: Mon, 24 May 2010 07:38:24 -0400 Subject: [PATCH] Add package block syntax to perldelta --- pod/perl5132delta.pod | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.7.4