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)

Subject: ProhibitLvalueSubstr docs
Date: Tue, 06 Jul 2010 10:24:17 +1000
To: bug-Perl-Critic [...]
From: Kevin Ryde <user42 [...]>
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