Skip Menu |
 

This queue is for tickets about the namespace-autoclean CPAN distribution.

Report information
The Basics
Id: 67075
Status: open
Priority: 0/
Queue: namespace-autoclean

People
Owner: ether [...] cpan.org
Requestors: dwheeler [...] cpan.org
Cc:
AdminCc:

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



From dwheeler [...] cpan.org Tue Mar 29 23: 37:51 2011
CC: bug-namespace-autoclean [...] rt.cpan.org
MIME-Version: 1.0 (Apple Message framework v1082)
X-Spam-Status: No, score=-7.687 tagged_above=-99.9 required=10 tests=[AWL=-0.787, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=unavailable
X-Mailer: Apple Mail (2.1082)
X-Spam-Flag: NO
Message-ID: <953FDDF5-F5EB-41DF-85CA-130CE219EDF6 [...] cpan.org>
content-type: text/plain; charset="utf-8"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -7.687
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id E183D2417ED for <cpan-bug+namespace-autoclean [...] hipster.bestpractical.com>; Tue, 29 Mar 2011 23:37:50 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HngCDDOduEUT for <cpan-bug+namespace-autoclean [...] hipster.bestpractical.com>; Tue, 29 Mar 2011 23:37:48 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 08FC3241754 for <bug-namespace-autoclean [...] rt.cpan.org>; Tue, 29 Mar 2011 23:37:47 -0400 (EDT)
Received: (qmail 9185 invoked by uid 103); 30 Mar 2011 03:37:47 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 30 Mar 2011 03:37:47 -0000
Received: from host-201.commandprompt.net (HELO smtp.kineticode.com) (207.173.203.201) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Tue, 29 Mar 2011 20:37:45 -0700
Received: from [10.0.1.20] (c-24-21-128-239.hsd1.or.comcast.net [24.21.128.239]) by smtp.kineticode.com (Postfix) with ESMTPSA id C984A5084DE; Tue, 29 Mar 2011 20:37:42 -0700 (PDT)
Delivered-To: cpan-bug+namespace-autoclean [...] hipster.bestpractical.com
Subject: namespace::autoclean breaks sort
Return-Path: <dwheeler [...] cpan.org>
X-RT-Mail-Extension: namespace-autoclean
X-Original-To: cpan-bug+namespace-autoclean [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Date: Tue, 29 Mar 2011 20:37:41 -0700
X-Spam-Level:
To: bug-template-declare [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: "David E. Wheeler" <dwheeler [...] cpan.org>
X-RT-Original-Encoding: us-ascii
Content-Length: 757
Download (untitled) / with headers
text/plain 757b
Not sure if this is a namespace::autoclean or Template::Declare issue; I suspect the former. On Perl 5.12.2, with this code: #!/usr/bin/env perl -w use 5.12.0; use namespace::autoclean; use Template::Declare::Tags; my @rels = ('foo', 'bar'); @rels = map { $_->[0] } sort { $b->[1] cmp $a->[1] } map { [ $_ => uc $_ ] } @rels; I the contents of $a and $b are empty! I get these warnings: Use of uninitialized value in string comparison (cmp) at /Users/david/bin/try line 11. Use of uninitialized value in string comparison (cmp) at /Users/david/bin/try line 11. Goes away if I comment-out namespace::autoclean. Probably shouldn't use it in a Template module anyway, but thought it worth mentioning. Seems pretty weird. Thanks, David
MIME-Version: 1.0
In-Reply-To: <953FDDF5-F5EB-41DF-85CA-130CE219EDF6 [...] cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <953FDDF5-F5EB-41DF-85CA-130CE219EDF6 [...] cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-14961-1418850181-1194.67075-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 952
Download (untitled) / with headers
text/plain 952b
On 2011-03-29 20:37:51, DWHEELER wrote: Show quoted text
> Not sure if this is a namespace::autoclean or Template::Declare issue; > I suspect the former. On Perl 5.12.2, with this code: > > #!/usr/bin/env perl -w > > use 5.12.0; > > use namespace::autoclean; > use Template::Declare::Tags; > > my @rels = ('foo', 'bar'); > > @rels = > map { $_->[0] } > sort { $b->[1] cmp $a->[1] } > map { [ $_ => uc $_ ] } @rels; > > I the contents of $a and $b are empty! I get these warnings: > > Use of uninitialized value in string comparison (cmp) at > /Users/david/bin/try line 11. > Use of uninitialized value in string comparison (cmp) at > /Users/david/bin/try line 11. > > Goes away if I comment-out namespace::autoclean. Probably shouldn't > use it in a Template module anyway, but thought it worth mentioning. > Seems pretty weird. > > Thanks, > > David
Template::Declare::Tags is adding its own map() sub, which is definitely getting in the way.


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.