diff options
author | Father Chrysostomos <sprout@cpan.org> | 2016-05-29 16:02:53 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2016-07-17 11:27:13 -0700 |
commit | 3f645a4ef6d10b8274c68d3419aefe66f540678f (patch) | |
tree | a3520ff5468fc2aa441d8d42bcaaecbec9880fc0 | |
parent | 8fde4f036b9f926a6d43a88975f266b0993e360c (diff) | |
download | perl-3f645a4ef6d10b8274c68d3419aefe66f540678f.tar.gz |
perldiag entries for declared_refs
-rw-r--r-- | pod/perldiag.pod | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index fb502bb0a2..146cd52911 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1893,6 +1893,18 @@ valid magic number. you have also specified an explicit size for the string. See L<perlfunc/pack>. +=item Declaring references is experimental + +(S experimental::declared_refs) This warning is emitted if you use +a reference constructor on the right-hand side of C<my>, C<state>, C<our>, or +C<local>. Simply suppress the warning if you want to use the feature, but +know that in doing so you are taking the risk of using an experimental +feature which may change or be removed in a future Perl version: + + no warnings "experimental::declared_refs"; + use feature "declared_refs"; + $fooref = my \$foo; + =for comment The following are used in lib/diagnostics.t for testing two =items that share the same description. Changes here need to be propagated to there @@ -5881,6 +5893,14 @@ think the U.S. Government thinks it's a secret, or at least that they will continue to pretend that it is. And if you quote me on that, I will deny it. +=item The experimental declared_refs feature is not enabled + +(F) To declare references to variables, as in C<my \%x>, you must first enable +the feature: + + no warnings "experimental::declared_refs"; + use feature "declared_refs"; + =item The %s function is unimplemented (F) The function indicated isn't implemented on this architecture, |