# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #117705]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=117705 >


Rakudo completely ignores initial empty lines at the beginning of heredocs:

$ cat heredoc-example
print q:to/EOF/;
    abc
    EOF

print q:to/EOF/;

    abc
    EOF

print q:to/EOF/;


    abc
    EOF

$ perl6 heredoc-example
abc
abc
abc

If this is to spec, I find nothing in the spec to support it. More to
the point, Perl 5 *doesn't* ignore initial empty lines in heredocs:

$ cat heredoc-example-perl5
print <<'EOF';
abc
EOF

print <<'EOF';

abc
EOF

print <<'EOF';


abc
EOF

$ perl heredoc-example-perl5
abc

abc


abc

Reply via email to