diff options
author | Father Chrysostomos <sprout@cpan.org> | 2016-05-29 14:29:28 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2016-07-17 11:27:02 -0700 |
commit | 5c70377968f8f6fcfa170e26ec8529cafb0f7ee0 (patch) | |
tree | 2fa2e575ebb70d494281b777bfaa693498007349 /lib/feature.pm | |
parent | 37690136cd4c7fd68adf555398dac9fea74bb54f (diff) | |
download | perl-5c70377968f8f6fcfa170e26ec8529cafb0f7ee0.tar.gz |
Update docs for declared_refs
Diffstat (limited to 'lib/feature.pm')
-rw-r--r-- | lib/feature.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/feature.pm b/lib/feature.pm index ddab73325c..5524e5b471 100644 --- a/lib/feature.pm +++ b/lib/feature.pm @@ -355,6 +355,22 @@ See L<perlop/Bitwise String Operators> for details. This feature is available from Perl 5.22 onwards. +=head2 The 'declared_refs' feature + +B<WARNING>: This feature is still experimental and the implementation may +change in future versions of Perl. For this reason, Perl will +warn when you use the feature, unless you have explicitly disabled the +warning: + + no warnings "experimental::declared_refs"; + +This allows a reference to a variable to be declared with C<my>, C<state>, +our C<our>, or localized with C<local>. It is intended mainly for use in +conjunction with the "refaliasing" feature. See L<perlref/Declaring a +Reference to a Variable> for examples. + +This feature is available from Perl 5.26 onwards. + =head1 FEATURE BUNDLES It's possible to load multiple features together, using |