Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a script to display mirror image of a entered value
and also check whether Palindrome

Answer Posted / dheeraj

print("Enter the no. to check for Palindrome : ");
my $no = <STDIN>;
chop($no);
my $rev =reverse($no);

print "Palindrom \n" if ($rev eq $no);

#Perl cannot identify the datatype until we force operation
on it;

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to start perl in interactive mode?

1037


Mention what is cpan?

1010


How many data types are there in perl?

952


what is the main function of fork() in cgi programming?

1118


Define perl scripting?

972


What's the difference between /^Foo/s and /^Foo/?

1176


What does cgi program store?

901


What are the two ways to get private values inside a subroutine?

891


List the data types that Perl can handle?

1038


What syntax is used for grep() function?

1160


what are the three groups involved in information sharing?

878


What is the use of command “use strict”?

1010


What is the difference between use and require in perl programming?

924


Comment on data types and variables in perl.

913


what are the two ways to get private values inside a subroutine or block?

921