in reply to
Simple regex to remove all but a list of words
I hope you meant
my @good_words = qw(red blue green brown);
It's
qw
, not
qq
, to populate an array.
Unless I state otherwise, all my code runs with
strict
and
warnings
Comment on
Re: Simple regex to remove all but a list of words
Download
Code
In Section
Seekers of Perl Wisdom