Created
January 27, 2011 01:26
-
-
Save goodside/797887 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$re = qr/ | |
. # single letter is a palindrome | |
| | |
(.) # first letter | |
(??{ $re })?? # apply recursivly (not interpolated yet) | |
\1 # last letter | |
/x; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment