This queue is for tickets about the Module-Starter-PBP CPAN distribution.

Report information
The Basics
Id:
38626
Status:
new
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
kevin [...] jibsheet.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



MIME-Version: 1.0 (Apple Message framework v926)
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Mailer: Apple Mail (2.926)
content-type: text/plain; charset="utf-8"; delsp="yes"; format="flowed"
X-Virus-Scanned: Debian amavisd-new at am.orpho.us
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 03EFF4D80CF for <bug-module-starter-pbp@rt.cpan.org>; Wed, 20 Aug 2008 16:48:01 -0400 (EDT)
Received: (qmail 11785 invoked from network); 20 Aug 2008 20:48:00 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Aug 2008 20:48:00 -0000
Received: from am.orpho.us (HELO am.orpho.us) (209.67.252.114) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Aug 2008 13:47:54 -0700
Received: from localhost (localhost.localdomain [127.0.0.1]) by am.orpho.us (Postfix) with ESMTP id A847DBC0244 for <bug-module-starter-pbp@rt.cpan.org>; Wed, 20 Aug 2008 16:47:51 -0400 (EDT)
Received: from am.orpho.us ([209.67.252.114]) by localhost (am.orpho.us [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eB3Vh3op-EXg for <bug-module-starter-pbp@rt.cpan.org>; Wed, 20 Aug 2008 16:47:47 -0400 (EDT)
Received: from ketch.local (unknown [75.147.59.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "ketch.jibsheet.com", Issuer "ketch.jibsheet.com" (verified OK)) by am.orpho.us (Postfix) with ESMTPS id 027C7BC00D5 for <bug-module-starter-pbp@rt.cpan.org>; Wed, 20 Aug 2008 16:47:47 -0400 (EDT)
Received: from [127.0.0.1] (localhost [127.0.0.1]) by ketch.local (Postfix) with ESMTP id E258147072A for <bug-module-starter-pbp@rt.cpan.org>; Wed, 20 Aug 2008 16:47:45 -0400 (EDT)
Delivered-To: cpan-bug+module-starter-pbp@diesel.bestpractical.com
Subject: MAIN_MODULE available but not substituted
Return-Path: <kevin@jibsheet.com>
X-Original-To: bug-module-starter-pbp@rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Date: Wed, 20 Aug 2008 16:47:45 -0400
X-Spam-Level: *
Message-Id: <8E91B7B1-8118-4904-9C4A-AAD1CAFEC9BF@jibsheet.com>
To: bug-module-starter-pbp@rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Kevin Falcone <kevin@jibsheet.com>
X-RT-Original-Encoding: US-ASCII
Content-Length: 820
The PBP module allows you to get at all the various values in $self (such as distro/DISTRO) in the templates. However, some of these values contain underscores. I wanted to use MAIN_MODULE in my README template, but it isn't replaced because of the _ (although there is a $self->{main_module} available). The following fixes it: Alternatively, a few lines up where the keys of $self are uppercased, they could also have _s removed to be more compatible -kevin --- PBP.pm.orig 2008-08-20 16:46:49.000000000 -0400 +++ PBP.pm 2008-08-20 16:44:14.000000000 -0400 @@ -126,7 +126,7 @@ local $/; my $text = <$fh>; - $text =~ s{<([A-Z ]+)>} + $text =~ s{<([A-Z _]+)>} { $context_ref->{$1} || die "Unknown placeholder <$1> in $rel_file_path\n" }xmseg;


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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