in reply to Call for code samples!
The output looks like this:#Block is the chunk of text, word is the 'hidden' word and sep is the +number of characters in the text between each word my ($block, $sep, $word)=@_; my @let = split //, $word; my $rep; my $i=1; foreach my $l (@let) {$l = "(".$l.")(.{$sep})";$rep.= + '\u$'.$i++.'$'.$i++;}; my $regexp2 = join "", @let; my $ev = '$block =~ '."s/$regexp2/$rep/i;"; # print "Now scanning block with $regexp2 and replacemen +t target $rep\n"; return $block, $word if eval $ev;
---This is the original text---------------------------------------- m at times; this thread, like that of Ariadne, when once unraveled will conduct one through a lab ---The ELS 'FNORD' is in capitals--------------------- mattimesthisthreadlikethatoFariadNewhenOnceunRaveleDwillconductonethro +ughalab
BTW if there's an obviously better way to do this I'd be delighted to hear about it.
____________________
Jeremy
I didn't believe in evil until I dated it.
|
|---|