NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Feedback loop (Score:2)
Re:Feedback loop (Score:1)
It should not be reading its own entries. I do filter MB entries. However, if other blogs quote MB, there's little I can do about that. It is very, very difficult to debug a particular entry to see what when wrong. I will have a look.
The problem and solution (Score:1)
I think this snake is indeed eating its own tail.
To debug this, I first grepped through all of the source material, which is organized into a subdirectories and files.
A typical source file looks like this:
I looked through all of these entries with this command:
Only my own MB entries were found. This argued strongly that the markov.pl isn't filtering the entries correctly. Here's the relevant section of code:
As you can see, the code appears to be looking for subject lines that contain the distinct sentential phrase. However, a closer reveals the ugly truth: only that subject line is skipped; the rest of the file is still processed!
With the careful application of labels, the fix appears to be the following:
This sort of bug would never have happened in Java, because I would never have tried to write this in Java. :-)
Reply to This
Parent
A better (working) solution (Score:1)