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

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

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é -
Download (untitled) / with headers
text/plain 103b
Workaround: do { my $x; bless \($x), $class } -- Olivier Mengué -

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

Please report any issues with to