in reply to Re: Useless use of private variable in void context
in thread Useless use of private variable in void context
But Khen1950fx's code has $tiu, $min && $tiu < $max as an if statement condition expression in two places. (I don't understand why this form is used in place of $tiu => $min && $tiu < $max of the OP code; am I missing something?)
Unless evaluation of $tiu has some side-effect (e.g., if it was a tied scalar – which it doesn't seem to be: as far as I can see, it's always a humble lexical), its evaluation is still useless and the 'useless use of ...' warning will still be generated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Useless use of private variable in void context
by SuicideJunkie (Vicar) on Jun 22, 2010 at 21:17 UTC |