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
How do I do fill_in_the_blank for each file in a directory?
What are the different ways to run cgi?
Comment on the scope of variables in perl.
Write the program to process a list of numbers.
Who created perl?
Explain what is STDIN, STDOUT and STDERR?
What $! In perl?
What does redo statement do in perl?
What are the various perl data types based on the context?
Explain the default scope of variables in perl?
How can memory be managed in Perl?
How to read from a pipeline with Perl
what are prefix dereferencer and list them out?
How to prevent file truncation in perl?
How to read file into hash array ?