Write a script to reverse a string without using Perl's
built in function
Answer Posted / kiran pawar
my $string = "kiran";
my @name = split//,$string;
while(@name){
print pop @name;
}
Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is the difference between exec and system?
How to close a file in perl?
How will you get the count of parameters passed to a perl subroutine?
Explain splicing of arrays?
What does -> symbol indicates in Perl?
How do I replace every character in a file with a comma?
Why to use perl scripting?
What is the peculiarity of returning values by subroutines in perl?
What is cpan in perl?
what is perl language?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
How to concatenate strings with perl?
You want to open and read data files with perl. How would you do that?
How to find the length of an array in perl?
Explain chomp?