Write a script to reverse a string without using Perl's
built in function
Answer Posted / kiruthikau
my $i;
my $str="hello";
my @str=split('',$str);
for($i=$#str;$i>=0;$i--)
{
print $str[$i];
}
| Is This Answer Correct ? | 47 Yes | 15 No |
Post New Answer View All Answers
Explain perl. When do you use perl for programming?
What does cgi program store?
How to concatenate strings in perl?
Enlist the advantages of using c over perl?
How to close a file in perl?
How many types of operators are used in the Perl?
In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?
What are prefix dereferencer? List them.
If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
Explain the difference between "my" and "local" variable scope declarations. ?
What is the difference between single (') and double (") quote in a string in perl?
How can you create anonymous subroutines?
what are the steps involved in reading a cgi script on the server?
Explain cpan?
What is the use of strict?