We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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:
The text was updated successfully, but these errors were encountered: