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 perl push array function?
What happens to objects lost in "unreachable" memory, such as the object returned by Ob->new() in `{ my $ap; $ap = [ Ob->new(), $ap ]; }' ?
Where do we require ‘chomp’ and what does it mean?
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??
What are the various uses of perl?
How to convert arrays into a string in perl?
How many ways can we express string in Perl?
How can I display all array element in which each element will display on next line in perl ?
How interpreter is used in perl?
How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.
How to deleting an existing file in perl programming?
What does this symbol mean '->'?
Explain different types of perl operators.
What is hash?
Explain the difference between declarations of 'my' and 'local' variable scope in perl?