Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty lines are ignored at the beginning of heredocs in Rakudo #3110

Closed
p6rt opened this issue Apr 22, 2013 · 4 comments
Closed

Empty lines are ignored at the beginning of heredocs in Rakudo #3110

p6rt opened this issue Apr 22, 2013 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 22, 2013

Migrated from rt.perl.org#117705 (status was 'resolved')

Searchable as RT117705$

@p6rt
Copy link
Author

p6rt commented Apr 22, 2013

From @masak

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

@p6rt
Copy link
Author

p6rt commented Sep 26, 2015

From @skids

Fix nom/b9101d9 and tests roast/90c84b8 committed.

@p6rt
Copy link
Author

p6rt commented Sep 26, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt closed this as completed Oct 10, 2015
@p6rt
Copy link
Author

p6rt commented Oct 10, 2015

@niner - Status changed from 'open' to 'resolved'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant