in reply to Is there a better way of dealing with !~ and "Useless use of not in void context at" warnings?

The not match operator !~ is not appropriate in the context of a substitution so the Perl interpreter gets confused (so will anyone else reading your code). In what fashion do you expect !~ to behave differently than =~ (what you should be using) in the context of substitution?


Perl's payment curve coincides with its learning curve.
  • Comment on Re: Is there a better way of dealing with !~ and "Useless use of not in void context at" warnings?