Skip Menu |
 

This queue is for tickets about the Template-Extract CPAN distribution.

Report information
The Basics
Id: 129541
Status: new
Priority: 0/
Queue: Template-Extract

People
Owner: Nobody in particular
Requestors: jacklangsdorf [...] gmail.com
Cc:
AdminCc:

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



Subject: bug: error with backreferences
Date: Sat, 11 May 2019 22:22:20 -0400
To: bug-Template-Extract [...] rt.cpan.org
From: Jack Langsdorf <jacklangsdorf [...] gmail.com>
Download (untitled) / with headers
text/plain 825b
Hello - I've found a bug in Template::Extract (using version 0.41; cpan says everything is up to date), where a value is returned that does not fit the template. The attached script demonstrates the error. The template used has one of its data fields more than once, and when some of the document looks like it fits the template in one place but actually fits in another (due to wildcards). Under some circumstances, it does not check using backreferences to make sure that the selected part of the document fits the template (i.e. that both instances of the data field match one another). Or it may be that it does check, but fails out and lands up returning the result anyway. I traced the error as far as Template/Extract/Run.pm sub _ext, but I don't understand what goes wrong at that point. - Jack Langsdorf

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



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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.