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

Write a program that explains the symbolic table clearly.

926


In Perl, what is grep function used for?

1031


What is the difference between die and exit in perl?

962


What does 'do' statement do in perl?

939


How do you match one letter in the current locale?

974


What is 'commit' command in perl?

1055


What is the use of -t?

922


You want to read command-line arguements with perl. How would you do that?

866


How to convert arrays into a string in perl?

905


Define operators used in perl?

896


Explain goto expr?

819


What is lexical variable in perl?

892


Can we load binary extension dynamically?

902


Explain substr function in perl?

985


There are two types of eval statements i.e. Eval expr and eval block. Explain them.

962