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
Write a program that explains the symbolic table clearly.
In Perl, what is grep function used for?
What is the difference between die and exit in perl?
What does 'do' statement do in perl?
How do you match one letter in the current locale?
What is 'commit' command in perl?
What is the use of -t?
You want to read command-line arguements with perl. How would you do that?
How to convert arrays into a string in perl?
Define operators used in perl?
Explain goto expr?
What is lexical variable in perl?
Can we load binary extension dynamically?
Explain substr function in perl?
There are two types of eval statements i.e. Eval expr and eval block. Explain them.