in reply to Re^6: 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). This helped me learn so much. Just seeing how you debugged it was educational.

I found the same problems, but didn't know how to fix them: (1)Never thought of checking the whole array, (2)Never thought of using negated if (or unless) instead I just tried else, and failed, and (3)That do loop is new to me.

Again, thanks a lot.

  • Comment on Re^7: Return 2 arrays, sort the same, and concatenate them

Replies are listed 'Best First'.
Re^8: Return 2 arrays, sort the same, and concatenate them
by Anonymous Monk on Jul 05, 2011 at 11:51 UTC

    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 ) {