Skip Menu |

This queue is for tickets about the Hades CPAN distribution.

Report information
The Basics
Id: 133239
Status: open
Priority: 0/
Queue: Hades

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

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



Subject: Issues with quoting
This kind of works: use strict; use warnings; use Hades; Hades->run({ eval => q{ Foo { get_open_bracket { return "{"; } get_close_bracket { return "}"; } } }, }); But the strings returned by the generated methods have extra whitespace in them which shouldn't be there. This totally fails to compile: use strict; use warnings; use Hades; Hades->run({ eval => q{ Foo { get_close_bracket { return "}"; } get_open_bracket { return "{"; } } }, });
Subject: Re: [rt.cpan.org #133239] Issues with quoting
Date: Fri, 28 Aug 2020 11:11:33 +0300
To: bug-Hades [...] rt.cpan.org
From: lnation <email [...] lnation.org>
You just need to escape Show quoted text
> On 28 Aug 2020, at 10:43, Toby Inkster via RT <bug-Hades@rt.cpan.org> wrote: > > Fri Aug 28 03:43:31 2020: Request 133239 was acted upon. > Transaction: Ticket created by TOBYINK > Queue: Hades > Subject: Issues with quoting > Broken in: 0.12 > Severity: (no value) > Owner: Nobody > Requestors: perl@toby.ink > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=133239 > > > > This kind of works: > > use strict; > use warnings; > use Hades; > Hades->run({ > eval => q{ > Foo { > get_open_bracket { return "{"; } > get_close_bracket { return "}"; } > } > }, > }); > > But the strings returned by the generated methods have extra whitespace in them which shouldn't be there. > > This totally fails to compile: > > use strict; > use warnings; > use Hades; > Hades->run({ > eval => q{ > Foo { > get_close_bracket { return "}"; } > get_open_bracket { return "{"; } > } > }, > }); >
Hades documentation doesn't mention any escaping mechanism.