summaryrefslogtreecommitdiff
path: root/pod/perlsub.pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-05-12 13:03:05 -0600
committerKarl Williamson <khw@cpan.org>2014-05-12 13:07:04 -0600
commitcb07e2f266e60dcc6d04fedaf9b94bbe9e72f4d2 (patch)
treed230462d9ebe44b8492e403f527afc29469b6583 /pod/perlsub.pod
parentc749c9fddc73b23f98a7500086ed6e3fffae9c94 (diff)
downloadperl-cb07e2f266e60dcc6d04fedaf9b94bbe9e72f4d2.tar.gz
perlsub: Fix too-long verbatim line length
This was introduced by commit d3f8a934ef964c0f488e9c692275435d8ea2e291 which reverted earlier fixes, including this pod problem.
Diffstat (limited to 'pod/perlsub.pod')
-rw-r--r--pod/perlsub.pod24
1 files changed, 12 insertions, 12 deletions
diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index daa25bc042..aeced63527 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -1697,18 +1697,18 @@ L<B::Deparse>, consider this example of two subroutines returning
C<1>, one with a C<()> prototype causing it to be inlined, and one
without (with deparse output truncated for clarity):
- $ perl -MO=Deparse -le 'sub ONE { 1 } if (ONE) { print ONE if ONE }'
- sub ONE {
- 1;
- }
- if (ONE ) {
- print ONE() if ONE ;
- }
- $ perl -MO=Deparse -le 'sub ONE () { 1 } if (ONE) { print ONE if ONE }'
- sub ONE () { 1 }
- do {
- print 1
- };
+ $ perl -MO=Deparse -le 'sub ONE { 1 } if (ONE) { print ONE if ONE }'
+ sub ONE {
+ 1;
+ }
+ if (ONE ) {
+ print ONE() if ONE ;
+ }
+ $ perl -MO=Deparse -le 'sub ONE () { 1 } if (ONE) { print ONE if ONE }'
+ sub ONE () { 1 }
+ do {
+ print 1
+ };
If you redefine a subroutine that was eligible for inlining, you'll
get a warning by default. You can use this warning to tell whether or