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

Demonstrate subroutines in perl with a simple example.

815


What are prefix dereferencer? List them.

914


How to close a file in perl?

884


Difference between the variables in which chomp function work ?

1008


How to do comment in perl?

906


Explain join function in perl?

881


What $! In perl?

901


Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.

972


Explain what is STDIN, STDOUT and STDERR?

968


What is cpan in perl?

895


What is subroutine in perl?

886


How to read a directory in perl?

951


What are the features of perl language?

1018


How do you turn on the perl warnings?

856


You want to read command-line arguements with perl. How would you do that?

843