diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-09-15 22:03:35 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-09-15 22:45:11 -0700 |
commit | e7d0b8012b8b3d92c39255cf40044c8233629cec (patch) | |
tree | 0082a264767c01e3ac57724864a20e3d9d86efcf /pod | |
parent | ebd2568602497a1cca32683caa01bc948f2637f1 (diff) | |
download | perl-e7d0b8012b8b3d92c39255cf40044c8233629cec.tar.gz |
Disable lexsubs outside of feature.pm
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index fd09b6596e..e579b11f54 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1860,6 +1860,14 @@ as a goto, or a loop control statement. (W exiting) You are exiting a substitution by unconventional means, such as a return, a goto, or a loop control statement. +=item Experimental "%s" subs not enabled + +(F) To use lexical subs, you must first enable them: + + no warnings 'experimental:lexical_subs'; + use feature 'lexical_subs'; + my sub foo { ... } + =item Explicit blessing to '' (assuming package main) (W misc) You are blessing a reference to a zero length string. This has |