You just need a large input of text that can be incremented through from 2 characters at a time to length / message length characters at a time. If your message isn't horribly long, chances are it can be hidden - and if not, you can always rewrite your message and try again. A list of synonyms for each word in your message is good for this - just try all possible message combinations with all possible spacings and see which ones can be hidden. For instance:
use strict;
$_ = 'America';
$_ = lc($_); s/[^a-z]//g;
my @m = split(//);
open(INP, 'pkjv.txt');
read(INP, $_, 3500000);
close(INP);
my ($n, $find);
for $n (2..100) {
$find = join(".{$n}", @m);
if (m/($find)/g) {
print pos() . " $n $1"; exit;
}
}
Returns:
1277399 23 alsohosahofthechildrenofmerarihadsonssimrithechiefforthough
+hewasnotthefirstbornyethisfathermadehimthechiefchhilkiahthesecondteba
+liahthethirdzecha
(I'd already processed the KJV file to remove all characters other than a-zA-Z and lc. This example does not include synonyms)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.