Just a note, you may also with to remove anything that isn't a letter and convert all letters to either uppercase or lowercase for comparison. Because, after all, phrases like:
... are all palindromes. See here for more fun with palindromes.
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
In reply to Re: Improving a palindrome script...
by chargrill
in thread Improving a palindrome script...
by chinamox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |