Skip Menu |

This queue is for tickets about the Paper-Specs CPAN distribution.

Report information
The Basics
Id: 9807
Status: new
Priority: 0/
Queue: Paper-Specs

People
Owner: Nobody in particular
Requestors: cpan [...] ali.as
Cc:
AdminCc:

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



Subject: Bug in spec module generator creating bugs in modules
PPI::Tinderbox barfed on several avery modules while it was attempting to parse them. Looking in the files, I see the following ------------------------------------------------- package Paper::Specs::Avery::5096; use strict; use base qw(Paper::Specs::base::label Paper::Specs::Avery); sub specs { return { code => "5096", description => "3 1/2" Diskette Labels - Red", ^^^ -------------------------------------------- Apparently, whatever you are using to generate the modules, you arn't escaping double quotes in the description. In fact, you probably ACTUALLY want to be generating them to use single quotes, and just escaping those. sub generate_perl_string { my $string = shift; my $string = s/\'/\\\'/; return "'$string'"; } ... or something similar