Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Vars CPAN distribution.

Report information
The Basics
Id: 82411
Status: open
Priority: 0/
Queue: Test-Vars

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

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



Subject: \(my $var) is not a unused variable
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 342
Download (untitled) / with headers
text/plain 342b
When a reference to a variable is used it should not be considered unused. There is a common idiom when declaring an empty object which internal representation is a scalar: bless do { \(my $x) }, $class or bless \(my $y), $class Currently $x is reported as unused, while it is. -- Olivier Mengué - http://perlresume.org/DOLMEN
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-9046-1357318584-771.82411-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 103
Download (untitled) / with headers
text/plain 103b
Workaround: do { my $x; bless \($x), $class } -- Olivier Mengué - http://perlresume.org/DOLMEN


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.