Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Elaborate on perl bite-wise operators.

850


Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)

927


How to convert arrays into a string in perl?

884


You want to connect to sql server through perl. How would you do that?

884


Explain the difference between die and exit in perl?

819


What is perl scripting?

868


Can inheritance be used in perl? Explain with the help of an example.

902


How does polymorphism work in perl?

860


What does this symbol mean '->'?

916


What are the different string manipulation operators in perl?

864


What are different data types that perl supports. Elaborate on them.

978


Explain tk?

909


What are the logical operators used for small scale operations? Explain them briefly.

920


Which has highest precedence in between list and terms? Explain?

816


How to prevent file truncation in perl?

936