diff options
author | Father Chrysostomos <sprout@cpan.org> | 2015-01-19 20:39:44 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2015-01-19 20:39:44 -0800 |
commit | 48c4d2435578cd1d8d49c2a16ed8659407164488 (patch) | |
tree | 90ba71be744859fa2030f0e60e944ea603beef1e | |
parent | 1e50fc51c534d19806ee06a152dfe1e819ca4837 (diff) | |
download | perl-48c4d2435578cd1d8d49c2a16ed8659407164488.tar.gz |
perldelta for :const
-rw-r--r-- | pod/perldelta.pod | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod index af25293b16..5fe09b56e5 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -68,6 +68,13 @@ experience, using this pragma will raise a category C<experimental:re_strict> warning. See L<'strict' in re|re/'strict' mode>. +=head2 New "const" subroutine attribute + +The "const" attribute can be applied to an anonymous subroutine. It causes +it to be executed immediately when it is cloned. Its value is captured and +used to create a new constant subroutine that is returned. This feature is +experimental. See L<perlsub/Constant Functions>. + =head1 Security XXX Any security-related notices go here. In particular, any security |