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

How do I pass a command line argument in perl?

929


Create a function that is only available inside the scope where it is defined ?

960


What does perl do in linux?

894


What are the benefits of perl in using it as a web-based application?

849


How to replace perl array elements?

906


You want to print the contents of an entire array. How would you do that?

901


Write a cgi program to show the header part?

922


Can inheritance be used in perl? Explain with the help of an example.

913


What are perl strings?

847


What is perl push array function?

898


Why we use CGI?

2493


List all the features of perl programming?

857


What does the qq{ } operator do?

896


What is the use of command “use strict”?

962


What is subroutine in perl?

896