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?
In reply to Re: Is there a better way of dealing with !~ and "Useless use of not in void context at" warnings?
by GrandFather
in thread Is there a better way of dealing with !~ and "Useless use of not in void context at" warnings?
by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |