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

Explain perl. When do you use perl for programming?

857


What does cgi program store?

889


How to concatenate strings in perl?

1024


Enlist the advantages of using c over perl?

901


How to close a file in perl?

924


How many types of operators are used in the Perl?

1021


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

982


What are prefix dereferencer? List them.

953


If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?

982


Explain the difference between "my" and "local" variable scope declarations. ?

1038


What is the difference between single (') and double (") quote in a string in perl?

974


How can you create anonymous subroutines?

898


what are the steps involved in reading a cgi script on the server?

911


Explain cpan?

956


What is the use of strict?

906