in reply to Re^7: Return 2 arrays, sort the same, and concatenate them
in thread Return 2 arrays, sort the same, and concatenate them
WOW! I don't know how to thank you (Let me know if there is a way to repay).
Just rewrite that stuff until it reads like English :) and watch String Calculator TDD Kata done in Perl
Additional comment about my tweaks, I hope you noticed there was no need for $foundPronouns since @pronoun_matches serves the same purpose (an array in scalar context, returns the number of elements in that array -- that is what and @$pronoun_matches) did)
if ( not @pronoun_matches ) {
|
|---|