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 / 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


Please Help Members By Posting Answers For Below Questions

What is a chop() function in perl?

1021


What interface used in PERL to connect to database? How do you connect to database in Perl?

993


Write a program that shows the distinction between child and parent process?

944


In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?

1009


Explain returning values from subroutines?

968


Explain grooving and shortening of arrays and splicing of arrays?

902


How do I print the entire contents of an array with Perl?

947


You want to empty an array. How would you do that?

915


Why does Perl not have overloaded functions?

1042


How do you you check the return code of a command in perl?

987


How do find the length of an array?

1137


Explain goto label?

935


Explain about the applications of perl?

978


Define dynamic scoping.

897


How to know whether a key exists or not in perl?

983