Write a script to reverse a string without using Perl's
built in function
Answer Posted / venkatesh
#!/usr/bin/perl
$a = "Venky";
@c;
@b = split("", $a);
foreach $char (@b){
unshift(@c, $char);
}
$value = join("", @c);
print "$value\n";
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Elaborate on perl bite-wise operators.
Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)
How to convert arrays into a string in perl?
You want to connect to sql server through perl. How would you do that?
Explain the difference between die and exit in perl?
What is perl scripting?
Can inheritance be used in perl? Explain with the help of an example.
How does polymorphism work in perl?
What does this symbol mean '->'?
What are the different string manipulation operators in perl?
What are different data types that perl supports. Elaborate on them.
Explain tk?
What are the logical operators used for small scale operations? Explain them briefly.
Which has highest precedence in between list and terms? Explain?
How to prevent file truncation in perl?