Skip Menu |
Report information
Id: 117705
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Empty lines are ignored at the beginning of heredocs in Rakudo
Date: Mon, 22 Apr 2013 16:00:54 +0200
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 527b
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
Fix nom/b9101d9 and tests roast/90c84b8 committed.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org