|Just another Perl shrine|
Re: help with comparing two arrays of phrasesby BrowserUk (Pope)
|on Oct 10, 2012 at 07:28 UTC||Need Help??|
The problem is that this:
Will only remove parenthesis if the appears in together in matched pairs.
Ie. It would remove these "fred () bill () john", but not these "(fred)(bill john)".
A better way to remove all parens is to use tr///. Eg. $temp_array =~ tr/()//d;
You could also use: $temp_array =~ s/[()]//g;
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.