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 :)
In reply to Re^6: Return 2 arrays, sort the same, and concatenate them
by Anonymous Monk
in thread Return 2 arrays, sort the same, and concatenate them
by jonc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |