Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 59111
Status: new
Priority: 0/
Queue: Perl-Critic

Owner: Nobody in particular
Requestors: user42 [...]

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

From gg [...] Tue Jul 6 04: 20:04 2010
MIME-Version: 1.0
X-Spam-Status: No, score=-10.57 tagged_above=-99.9 required=10 tests=[AWL=0.029, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8] autolearn=ham
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <871vbhlaoe.fsf [...] blah.blah>
X-Virus-Scanned: Debian amavisd-new at
X-Spam-Score: -10.57
Received: from localhost (localhost []) by (Postfix) with ESMTP id C99A161E00A for <cpan-bug+Perl-Critic [...]>; Mon, 5 Jul 2010 20:24:09 -0400 (EDT)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id dWukXMCUO5K4 for <cpan-bug+Perl-Critic [...]>; Mon, 5 Jul 2010 20:24:07 -0400 (EDT)
Received: from ( []) by (Postfix) with SMTP id A242661E007 for <bug-Perl-Critic [...]>; Mon, 5 Jul 2010 20:24:05 -0400 (EDT)
Received: (qmail 8169 invoked by uid 103); 6 Jul 2010 00:25:33 -0000
Received: from ( by with QMQP; 6 Jul 2010 00:25:33 -0000
Received: from (HELO ( by (qpsmtpd/0.80) with ESMTP; Mon, 05 Jul 2010 17:25:32 -0700
Received: from ( []) by (Postfix) with ESMTP id BE80621820B for <bug-Perl-Critic [...]>; Tue, 6 Jul 2010 10:25:27 +1000 (EST)
Received: from blah.blah ( []) by (Postfix) with ESMTP id CE44C8C2E for <bug-Perl-Critic [...]>; Tue, 6 Jul 2010 10:25:22 +1000 (EST)
Received: from gg by blah.blah with local (Exim 4.72) (envelope-from <gg [...]>) id 1OVvxR-0000uK-4m for bug-Perl-Critic [...]; Tue, 06 Jul 2010 10:24:17 +1000
Delivered-To: cpan-bug+Perl-Critic [...]
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)
Subject: ProhibitLvalueSubstr docs
Return-Path: <gg [...]>
X-RT-Mail-Extension: perl-critic
X-Original-To: cpan-bug+Perl-Critic [...]
Date: Tue, 06 Jul 2010 10:24:17 +1000
To: bug-Perl-Critic [...]
From: Kevin Ryde <user42 [...]>
X-RT-Original-Encoding: us-ascii
Content-Length: 605
Download (untitled) / with headers
text/plain 605b
The pod of ProhibitLvalueSubstr could note that the 4-arg substr is new in perl 5.005, so you know you might be upping your minimum by switching to it. But as an encouragement to go 4-arg, which is the purpose of the policy :-), it could be worth noting there's a misfeature in the lvalue form when used on magical or overloaded scalars -- they end up kept alive in the function scratchpad when you otherwise thought you'd dropped all references to them. Per my ticket which I think has been acknowledged as real, but perhaps not fixed yet.

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

Please report any issues with to