in reply to Re^5: Return 2 arrays, sort the same, and concatenate them
in thread Return 2 arrays, sort the same, and concatenate them
Ok, I might as well comment on my changes ie your problem
empty return, instead of last, in dependency_checks, made @all_pronoun_matches empty
After that, @all_pronoun_matches wasn't all empty, but still had some empty arrayrefs, which is why I added
This should have been a change in dependency_checks to return undef instead of an empty ref, but, well, oh well :)and @$matches); and @$pronoun_matches);
Next I took a look at \%counts, \%pronouncounts and noticed %counts also contained \%pronouncounts -- and the same went for \@all_matches, it also contained \@all_pronoun_matches, so I went back and modified sub dependency_checks and added not $foundPronouns
That got the program 98% there, except there was a missing count number, naturally, since counts no longer contained pronouncounts, so I changed $header, and we're 99% there, the only thing misssing is an extra newline before header :)
Hopefully it makes sense :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Return 2 arrays, sort the same, and concatenate them
by jonc (Beadle) on Jul 04, 2011 at 14:13 UTC | |
by Anonymous Monk on Jul 05, 2011 at 11:51 UTC |