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)
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|