5 little blocks of code
Happy as can be.
Along came the IDE
and formatted them into three.
Along came the inter-preter
who didn't like this a bit.
So it went ahead
And put them all back.
On to Perl-Monks this little script went
Aspiring to be famous
For this rhyme that makes no sense!
g(f());sub a{"1722152". "132141301952082092142". "021992121301781992
+122". "061302021951972051992". "12144108";}sub b {
length(scalar(shift));} sub c{98;}sub d {3;}sub e{return $_[0]+d();
+}sub f{my $h = b(a());my @i = ();my $j=0;while($j
<$h){my $k=sprintf('%d' ,substr(a(),$j,d));push (@i,chr($k- c));$j=
+e($j );}return@i;}sub g{abcd( join("",@_)) }sub
abcd{ print @_
+ ; }
~Thomas~
I believe that the source code to life is written in Perl :-)
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.