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
Demonstrate subroutines in perl with a simple example.
What are prefix dereferencer? List them.
How to close a file in perl?
Difference between the variables in which chomp function work ?
How to do comment in perl?
Explain join function in perl?
What $! In perl?
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
Explain what is STDIN, STDOUT and STDERR?
What is cpan in perl?
What is subroutine in perl?
How to read a directory in perl?
What are the features of perl language?
How do you turn on the perl warnings?
You want to read command-line arguements with perl. How would you do that?