Open jkeenan opened 6 days ago
Transferred from rt.cpan.org ...
Original Ticket Information
Original Text
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.
$x
Follow-up Report (same date as original)
Workaround:
do { my $x; bless \($x), $class }
Transferred from rt.cpan.org ...
Original Ticket Information
Original Text
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:
or
Currently
$x
is reported as unused, while it is.Follow-up Report (same date as original)
Workaround: