diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-11-21 13:09:19 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-11-21 13:09:19 -0800 |
commit | 2dc1f7e58322925d055e5b2fb221751649cf358d (patch) | |
tree | 6b35b6f7bc08e4e63e6c7f99f6e49e125118cab4 /pod/perlsub.pod | |
parent | efcf35c4ce9be7ae046664523cf99dac85257e4a (diff) | |
download | perl-2dc1f7e58322925d055e5b2fb221751649cf358d.tar.gz |
perlsub: constant redef warning is default, not mandatory
Diffstat (limited to 'pod/perlsub.pod')
-rw-r--r-- | pod/perlsub.pod | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pod/perlsub.pod b/pod/perlsub.pod index 9aae8ac479..3ceddd40f3 100644 --- a/pod/perlsub.pod +++ b/pod/perlsub.pod @@ -1278,9 +1278,10 @@ the constant folding doesn't reduce them to a single constant: } If you redefine a subroutine that was eligible for inlining, you'll get -a mandatory warning. (You can use this warning to tell whether or not a +a warning by default. (You can use this warning to tell whether or not a particular subroutine is considered constant.) The warning is -considered severe enough not to be optional because previously compiled +considered severe enough not to be affected by the B<-w> +switch (or its absence) because previously compiled invocations of the function will still be using the old value of the function. If you need to be able to redefine the subroutine, you need to ensure that it isn't inlined, either by dropping the C<()> prototype |