I would suggest looking at split() and reverse(), to make your project somewhat easier.
Hope that helps.
In reply to Re: Perl Palindrome by atcroft in thread Perl Palindrome by hushbaby