I Think you need if ( !/$words/ ) {...} rather than if ( $_ !~ /$words/ ) {...}
UpdateYep! I completely misread that one:(
In reply to Re: regex question
by BrowserUk
in thread regex question
by gnu@perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |