Speaking of unique uses of Perl?
How about predicting the end of times? Do you have Apocalypse on your mind? Well, watch what Perl can do:
_____________________
How about predicting the end of times? Do you have Apocalypse on your mind? Well, watch what Perl can do:
Output:$x = 0; $s = "HOLY BIBLE"; # # add up ASCII codes for all letters in the $s string. # (also, print out extra information) # $s =~ s/(\w)/{$x+=($o=ord($1));print"$1 - $o\n";''}/eg; print "Total: $x\n";
There's actually a lot of other mathematically legitimate ways of obtaining the number 666. I found this one where it's being derived from the word 'HOLY BIBLE' particularly interesting, since it is in this book that a reference is made to 666 as being the number of the beast in the end of times.H - 72 O - 79 L - 76 Y - 89 B - 66 I - 73 B - 66 L - 76 E - 69 Total: 666
_____________________
# Under Construction
|
---|
Replies are listed 'Best First'. | |
---|---|
(jeffa) Re: Predicting the end of times...
by jeffa (Bishop) on Jul 06, 2002 at 17:19 UTC | |
by AcidHawk (Vicar) on Jul 08, 2002 at 14:31 UTC | |
by jeffa (Bishop) on Jul 08, 2002 at 14:46 UTC | |
Re: Predicting the end of times...
by zentara (Archbishop) on Jul 06, 2002 at 16:35 UTC | |
Re: Predicting the end of times...
by janx (Monk) on Jul 09, 2002 at 10:16 UTC | |
by John M. Dlugosz (Monsignor) on Jul 09, 2002 at 21:19 UTC | |
by Basilides (Friar) on Jul 10, 2002 at 09:21 UTC | |
by zakzebrowski (Curate) on Jul 12, 2002 at 11:51 UTC | |
Re: Predicting the end of times...
by krujos (Curate) on Jul 11, 2002 at 14:19 UTC |
Back to
Cool Uses for Perl