In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/377a74500444ecdab6e964cb221da54cd6e5ab89?hp=e92144652274f3cc1e7a2e1b89501b5893f0df05>

- Log -----------------------------------------------------------------
commit 377a74500444ecdab6e964cb221da54cd6e5ab89
Author: Lukas Mai <l....@web.de>
Date:   Thu Aug 3 23:39:07 2017 +0200

    perlop: use <<~FOO construct in example of indented here-docs
-----------------------------------------------------------------------

Summary of changes:
 pod/perlop.pod | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pod/perlop.pod b/pod/perlop.pod
index f981644f67..d7c52be36d 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -2669,12 +2669,12 @@ use C<chomp()>.
     END
 
 If you want your here-docs to be indented with the rest of the code,
-you'll need to remove leading whitespace from each line manually:
+use the C<<< <<~FOO >>> construct described under L</Indented Here-docs>:
 
-    ($quote = <<'FINIS') =~ s/^\s+//gm;
+    $quote = <<~'FINIS';
        The Road goes ever on and on,
        down from the door where it began.
-    FINIS
+       FINIS
 
 If you use a here-doc within a delimited construct, such as in C<s///eg>,
 the quoted material must still come on the line following the

--
Perl5 Master Repository

Reply via email to