Brain Teaser 2

Tyler Nally (tnally@iquest.net)
Thu, 28 May 1998 17:48:48


At 06:38 PM 5/28/98 -0400, Sis Anneliese wrote:
>| Bro "technology helped me to cheat" Tyler
>
>
>Tsk Tsk!!!!!   :-)
>

>Although, I've never seen this one before (June '96 was before my time on
>HF I think).

I think when I first tried it, I did it with a pencil as well.

Then to check my work, I wrote a quick perl progrm that'd remove
the whitespace, commas, periods, and any other type of keyboard
punctuation.  Then it'd change each input line to lowercase whereby
it'd then compare the input line to a book of the bible as stored
in an array.  If it found a book, it'd change it's occurance to
UPPERCASE in that particular line.  It'd go through the rest of
the books in the event that there were more than one book on a 
line.  When there were no more bible books on a line, it'd print
the line as it has changed with the FOUND books printed in UPPERCASE
letters.  It'd proceed all of the way through the document until it
was done with the whole thing.  I then checked my pencil scratches
with my output and found they were in complete agreement.

Programming.... a wonderful thing.  It prolly took me longer to 
write and test the perl script to do this very thing than it took
to locate all of the books using a pencil and recognizing them all
by eyesight.

>It is much more fun to try and solve it again (IMHO)!

Naw ..... I knew I could find it again in the archives so I just
*looked* for it and was really really lazy.
 
Bro Tyler
--                                            
 ______ ___   __ _____ __    __   __  __ tnally@iquest.net
|_    _|   \ |  |  _  |  |  |  |  \ \/ / tgnally@prairienet.org
  |  | |  |\\|  |  _  |  |__|  |__ |  |  T. Nally - "A M.I.M.E. is a
  |__| |__| \___|_| |_|_____|_____||__|  a terrible thing to waste."