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 can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?
What is cpan ? What are the modules coming under this?
Explain strftime() function in perl?
What are different data types that perl supports. Elaborate on them.
What are the arguments and what do they mean in perl programming?
How to read from a pipeline with Perl
What are some common methods to all handles in perl?
We all know private variables exist in perl. But do private METHODS exist in perl ? Eg ?
what is perl language?
How would you ensure the re-use and maximum readability of your perl code?
Why does Perl not have overloaded functions?
What is perl unshift array function?
You want to download the contents of a url with perl. How would you do that?
Explain chop?
What does the q{ } operator do?