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