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
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
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.