P is for Practical | |
PerlMonks |
Re: Mystery Novelist seeks ELS generatorby dragonchild (Archbishop) |
on Nov 17, 2004 at 20:04 UTC ( [id://408558]=note: print w/replies, xml ) | Need Help?? |
It shouldn't be difficult, if you reverse the problem. Instead of approaching it from the "I have XYZ text to be hidden and I want to use a distance of NNN, how do I create a text?", why not approach it from the "I have XYZ text to be hidden and here is a corpus for me to try and hide it in, where should I start and what should my distance be?"
In other words, start with your message and your corpus and then have a program that figures out where in the corpus you should start and what your distance will be. The rest, imho, is a first-year programming exercise. Being right, does not endow the right to be rude; politeness costs nothing.
In Section
Seekers of Perl Wisdom
|
|