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
How to start perl in interactive mode?
Mention what is cpan?
How many data types are there in perl?
what is the main function of fork() in cgi programming?
Define perl scripting?
What's the difference between /^Foo/s and /^Foo/?
What does cgi program store?
What are the two ways to get private values inside a subroutine?
List the data types that Perl can handle?
What syntax is used for grep() function?
what are the three groups involved in information sharing?
What is the use of command “use strict”?
What is the difference between use and require in perl programming?
Comment on data types and variables in perl.
what are the two ways to get private values inside a subroutine or block?