in reply to warnings pragma anomaly
This warning will not be issued for numerical constants equal to 0 or +1 since they are often used in statements like 1 while sub_with_side_effects(); String constants that would normally evaluate to 0 or 1 are warned abo +ut.
*dump* Tutorials: Context in Perl: Context tutorial, "List" Is a Four-Letter Word, Easy Reference for Contexts no expected 'Useless use of a constant in void context' warning for expression in return statement Is there a better way of dealing with !~ and "Useless use of not in void context at" warnings? Sometimes it's in Void Context Unusual 'constant in void context' warnings
|
|---|