This was originally posted by Pam over on StackOverflow but I thought it was too awesome and had to share it, just in case you want validate a palindrome from the command line one day.
EDIT: I removed the code and provided a link to the comment at StackOverflow. You can check out Pams’ blog here: http://pm-db.blogspot.com/
