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 do I debug a perl program?
Can inheritance be used in perl?
Differentiate between c++ and perl.
What is the difference between perl list and perl array?
Why do we use "use strict" in perl?
What are the arguments and what do they mean in perl programming?
Define print() function in perl?
What is the difference between exec and system?
Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??
Distinguish my and local?
What is confess function in perl?
What is the main function of cookie server?
How do you set environment variables in perl?
Explain about typeglobs?
What can be done for efficient parameter passing in perl? Explain.