« Comment spam | Main | Cheese-eating surrender monkeys? »

Geek Love

At PerlMonks today:

#!/usr/bin/perl -w
use strict;

my$f= $[;my
$ch=0;sub l{length}
sub r{join"", reverse split
("",$_[$[])}sub ss{substr($_[0]
,$_[1],$_[2])}sub be{$_=$_[0];p
(ss($_,$f,1));$f+=l()/2;$f%=l
();$f++if$ch%2;$ch++}my$q=r
("\ntfgpfdfal,thg?bngbj".
"naxfcixz");$_=$q; $q=~
tr/f[a-z]/ [l-za-k]
/;my@ever=1..&l
;my$mine=$q
;sub p{
print
@_;
}

be $mine for @ever

Yes, that’s working Perl code. No, not all Perl code looks like that. The heart shape is totally optional. It produces the output:

kristen, will you marry me?

The poster’s intended said yes. Awww…

Comments

missing closing tag , either /pre /code or /tt I guess.

when viewing this page of the web in dillo, which igores stylesheet I guess. rest of page after perl/heart/proposal is monospace.

There were no unmatched tags in this entry.

There was, however, some text that wasn't enclosed in anything. I've put a <p> tag around it; maybe that will help.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)