|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: count trigrams of a whole fileby frozenwithjoy (Chaplain) |
| on Dec 20, 2012 at 08:50 UTC ( #1009704=note: print w/ replies, xml ) | Need Help?? |
|
UPDATE: A quick fix (if your file isn't too large or if you have sufficient RAM) would be to populate @words like so:
That way, you can move onto your for loop and you should get the result you want. This was the result I got after making this change:
ORIGINAL POST: Hi lakssreedhar, I didn't change anything, but I felt the need to reformat your code for better readability:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||