#!/usr/bin/perl # Palindrome.pl $x=; chomp($x); $y=reverse($x); if($x eq $y) { print "Palindrome"; }