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
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
Workaround: do { my $x; bless \($x), $class } -- Olivier Mengué - http://perlresume.org/DOLMEN