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

How many loop control keywords are there in perl?

888


How will you create a file in perl?

914


how to extract pin_code,phone_number,year from text file using regular expressions in perl

2186


What is an interpolation in perl?

927


How can we create perl programs in unix, windows nt, macintosh and os/2 ?

831


What is cpan in perl?

896


What is the difference between localtime() and gmtime() functions?

947


Explain about the applications of perl?

911


How to print escaping characters inside a string in perl?

840


Explain a tell function in perl?

914


Explain regular expression in perl?

892


Explain arrays in perl.

879


What are the features of perl language?

1018


What is the purpose of goto expr statement?

834


Differences between die and exit.

944