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 are the options that can be used to avoid logic errors in perl?

895


Explain the use of 'my' keyword in perl?

958


Does Perl have reference type?

893


How to read file into hash array ?

1011


Can we load binary extension dynamically?

887


Difference between the variables in which chomp function work ?

1009


How do I read command-line arguments with Perl?

963


Explain substr function in perl?

958


What is the use of "stderr()"?

956


Explain grooving and shortening of arrays?

1027


How do I replace every character in a file with a comma?

924


What does delete function do in perl?

928


Why does Perl not have overloaded functions?

972


How to open and read data files with Perl

991


How can you use Perl warnings and what is the importance to use them?

903