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

How the interpreter is used in Perl?

954


how to extract pin_code,phone_number,year from text file using regular expressions in perl

2238


Explain use of ‘my’ keyword in perl?

938


What is the difference between use and require in perl programming?

943


What are the different ways to run cgi?

964


How to connect to SQL server through Perl?

1059


Explain chomp, chop, cpan, tk.

939


What does Perl do if you try to exploit the execve(2) race involving setuid scripts?

949


Explain the execution of a program in perl.

1000


How will you access an element of a perl array?

946


Explain the different types of data perl can handle.

901


Explain chop?

923


Which guidelines by Perl modules must be followed?

1022


How to merge two arrays in perl?

1066


Why is it hard to call this function: sub y { "because" } ?

969