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
Explain grooving and shortening of arrays and splicing of arrays?
What is use of ‘->’ symbol?
Why to use perl?
I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur
Differentiate between arrays and list in perl.
Explain the use of 'my' keyword in perl?
What is the difference between use and require in perl programming?
Explain goto expr?
Explain cpan?
Which functions in Perl allows you to include a module file or a module and what is the difference between them?
How will you access an element of a perl array?
What are the different string manipulation operators in perl?
What is a chomp() function in perl?
Elaborate on perl bite-wise operators.
What are the reasons that cookie server can’t handle multiple connections?