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...

how to find a substring in a string without using substr
built in functions, and print the substring found

Answer Posted / yashwanth

$r="YASHWANTH";

@n=split (//,$r);
print "@n\n";
@t=splice(@n,0,3);

print "@t\n";
$r=join("",@t);
print "$r\n";
~
~

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the different between array and hash in perl programming?

907


Explain what is the scalar data and scalar variables in Perl?

937


Explain perl. When do you use perl for programming? What are the advantages of programming in perl?

859


What is warn function in perl?

933


What are the various flags/arguments that can be used while executing a perl program?

868


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

858


What is goto statement in perl?

922


Differentiate between c++ and perl.

987


How to open a directory in perl?

1078


What is perl? What is the basic command to print a string in perl?

858


Write the program to process a list of numbers.

962


Explain regular expression in perl?

934


Differentiate use and require?

922


What is perl I used for?

937


What is confess function in perl?

919