in reply to Re: Re: Re: Front Paging Profanity
in thread Front Paging Profanity
Sigh. There's nothing wrong with the module.
Try using case insensitivity:
And you'll need $RE{profanity}{contextual} to catch that seventh word, since there is nothing profane about members of the avian family Paridae./$RE{profanity}/i and print " contains profanity";
Oh, and the test will work better if you don't try to import the non-existent profanity subroutine.
In Section
Perl Monks Discussion