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
Which functions in perl allows you to include a module file.
How do you find the length of an array?
What are the purpose of close(), getc() and read() functions?
What exactly is grooving and shortening of the array?
Explain tk?
What is use of ‘->’ symbol?
How do you you check the return code of a command in perl?
List the files in current directory sorted by size ?
What are the features of perl language?
Explain goto label?
Mention how many ways you can express string in Perl?
Why does Perl not have overloaded functions?
What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)
What is the closure in PERL?
Which functions in Perl allows you to include a module file or a module and what is the difference between them?