In case you find Perl programs too easy to follow, Damian Conway has come up with a way for you to write Perl in Latin
This paper describes a Perl module — Lingua::Romana::Perligata — that makes it possible to write Perl programs in Latin. A plausible rationale for wanting to do such a thing is provided, along with a comprehensive overview of the syntax and semantics of Latinized Perl. The paper also explains the special source filtering and parsing techniques required to efficiently interpret a programming language in which the syntax is (largely) non-positional.
I know you want a code snippet:
meo varo haec da. # my $var = @_;
meis varo haec da. # my ($var) = @_
meis varis haec da. # my @var = @_;
(Thanks for the link, Noel.)
There's a fascinating contest afoot since 1996 called "The Obfuscated Perl Contest." The idea is to write the most needlessly complex Perl program your evil little mind can think up. According to the Wikipedia page, there are four categories which tend to limit the size of the programs to just…
That is the most horrible thing I've ever heard of.
I wonder if Jim knows Latin?
I believe Damian wrote this to demonstrate some basics of syntax and computer languages. If you ever have the chance to hear him speak, his talk on this often morphs into programming in Klingon. Then the screen turns red and the sound crew has to deal with Damian's throat-rending readings of the code.
A beautiful and yet scary performance that I would highly recommend. In fact, any time you have a chance to hear Damian speak it's worth your time.
Programming in Klingon? Behold, the true pinnacle of geekdom!
That is one of the more interesting things I've seen in a while.
As close as you're going to come to programming in a "natural" language anytime soon.
It seems strange to see the words "Perl" and "obtuse" in the same sentence. ;-)