Very nice! The way you mirrored the text is very pleasing, and the substitution and its reflection are very clever.
I would like to stake my own claim to having the first symmetrical JAPH, though.
This code was actually written to demonstrate a little-known operator in Perl. Of course, you're familiar with the "spaceship operator", <=>, so named because it resembles Darth Vader's TIE Fighter in Star Wars. Well, this code uses the super spaceship operator, <<=>>.
1. < 0, push @ tnirp => <<=>> <= print @ hsup ,0 > .1
Just another Perl hacker rekcah lerP rehto
; print @ tnirp ;
That was written in September 1999, and was inspired by something Benjamin Holzmann wrote for The Perl Conference 3.0.
There is a more complicated version which doesn't print the reflection, but it's not as aesthetically pleasing, so I prefer this one.
An obscure bug in 5.6.0 forced me to rewrite my script for that version (the bug has been fixed for 5.6.1). Fortunately, the super spaceship operator still works.
.1 . m || <= 0, push @ tnirp => <<=>> <= print @ hsup ,0 => || m .
Just another Perl hacker rekcah lreP rehto
; print @ tnirp ;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||