neversaint has asked for the wisdom of the Perl Monks concerning the following question:
and a list:my $line ='Lorem ipsum dolor sit amet, consectetur adipisicing elit.'
What I want to do is to extract all the words that are not in the array:# note that this contain phrases and single words. my @array = ('ipsum', 'sit amet', elit');
How can I go about it?$VAR = ['Lorem', 'dolor','consectetur', 'adipisicing'];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing a sentence based on array list
by davido (Cardinal) on Jul 19, 2013 at 05:51 UTC | |
|
Re: Parsing a sentence based on array list
by vinoth.ree (Monsignor) on Jul 19, 2013 at 05:40 UTC | |
|
Re: Parsing a sentence based on array list
by CountZero (Bishop) on Jul 19, 2013 at 05:58 UTC | |
|
Re: Parsing a sentence based on array list
by kcott (Archbishop) on Jul 19, 2013 at 07:04 UTC | |
|
Re: Parsing a sentence based on array list
by NetWallah (Canon) on Jul 19, 2013 at 05:27 UTC | |
|
Re: Parsing a sentence based on array list
by AnomalousMonk (Archbishop) on Jul 19, 2013 at 10:49 UTC |