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
We all know private variables exist in perl. But do private METHODS exist in perl ? Eg ?
How do I debug a perl program?
Can inheritance be used in perl? Explain with the help of an example.
Can inheritance be used in perl?
What is a chomp() function in perl?
What is the syntax used in Perl grep function?
What are the options that can be used to avoid logic errors in perl?
How we can navigate the xml documents?
How to change a directory in perl?
Which functions in perl allows you to include a module file. State their differences.
What is perl pop array function?
What are the functions that can be performed using cgi program?
What are the various file operations in perl. Explain with example.
Write syntax to add two arrays together in perl?
What is 'rollback' command in perl?