Skip Menu |

This queue is for tickets about the Devel-Declare CPAN distribution.

Report information
The Basics
Id: 47545
Status: resolved
Priority: 0/
Queue: Devel-Declare

Owner: Nobody in particular
Requestors: zefram [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: newline injection fail
Date: Fri, 3 Jul 2009 16:27:45 +0100
To: bug-Devel-Declare [...]
From: Zefram <zefram [...]>
Download (untitled) / with headers
text/plain 425b
The attached test script demonstrates a problem I've run into when attempting to inject code containing newlines from inside a D::D handler. The "single" test case, which doesn't involve newlines, works fine. The remaining test cases all result in syntax errors when normal parsing resumes. This only occurs when the injected newline is grammatically whitespace: a newline in an injected string literal works fine. -zefram
Download inject_newline.t
text/x-perl 2.1k

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 151b
Upon closer inspection, it looks like injecting newlines *can't* work, in the general case. toke.c hatehatehate. Documented in the next D:D release.

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

Please report any issues with to