in reply to Re: Warning about unused lexical variables
in thread Warning about unused lexical variables

the "unused" variable might still serve some purpose

Another example would be "anonymous" scalar references.

my $scalar_ref = \(my $s);

Or would taking a reference count as "using" it?

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.