develooper Front page | perl.perl5.porters | Postings from August 2012

[perl #114102] unterminateable heredocs caused by newline in delimiter

Thread Next
Father Chrysostomos via RT
August 2, 2012 00:20
[perl #114102] unterminateable heredocs caused by newline in delimiter
Message ID:
On Mon Jul 16 03:04:46 2012, nicholas wrote:
> Yes, if it can't ever work, why is it even accepted?
> Strikes me that it's buggy to accept a terminator which contains a newline
> (or anything else which the parser *cannot* later deal with), and that
> really the only sane thing to do is to report it as an error early.
> I also *think* that changing this can't actually change the behaviour of
> any existing program, because (if I understand it correctly), all
> fail to parse, due to the "missing" heredoc terminator.
> All it does is change the error reported, to one that is meaningful.

It works in string eval.  See also #78348 and #114040.


Father Chrysostomos

via perlbug:  queue: perl5 status: open

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About