Skip to content

Instantly share code, notes, and snippets.

@goodside
Created January 27, 2011 01:26
Show Gist options
  • Save goodside/797887 to your computer and use it in GitHub Desktop.
Save goodside/797887 to your computer and use it in GitHub Desktop.
$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