In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/f5d8aca1e51e677519775b879a4d41b6f78d07d2?hp=c4a6534165d0545c5a1273d7febaa02f28023972>
- Log ----------------------------------------------------------------- commit f5d8aca1e51e677519775b879a4d41b6f78d07d2 Author: Zefram <[email protected]> Date: Mon May 24 07:38:24 2010 -0400 Add package block syntax to perldelta ----------------------------------------------------------------------- Summary of changes: pod/perl5132delta.pod | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/pod/perl5132delta.pod b/pod/perl5132delta.pod index 549b70a..fe45773 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<map>. See L<perlop> 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<package Foo { ... }> +is precisely equivalent to C<{ package Foo; ... }>. It also works with +a version number in the declaration, as in C<package Foo 1.2 { ... }>. +See L<perlfunc>. + =head1 New Platforms XXX List any platforms that this version of perl compiles on, that previous -- Perl5 Master Repository
