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

What is the importance of perl warnings?

1144


What are the features of perl language?

1088


What are scalar data and scalar variables?

1124


What is grep used for in perl?

927


What does this symbol mean '->'?

1014


How to do comment in perl?

956


In CPAN module, name an instance you use.

963


What is posix in perl?

945


What are perl array functions?

1119


How to concatenate strings in perl?

1039


You want to concatenate strings with perl. How would you do that?

878


How do I do fill_in_the_blank for each file in a directory?

968


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

988


What is boolean context?

1002


What is the closure in PERL?

1019