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 / garg

#! /user/bin/perl
$str="Yashwanth";
$n="wan";
if ($str=~ $n)
{
print $n;
}

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the main function of fork() in cgi programming?

1036


What does the q{ } operator do?

848


How will you access an element of a perl array?

889


Explain subroutine?

859


What syntax is used for grep() function?

1088


What is a perl references?

863


Explain goto expr?

805


Why does Perl not have overloaded functions?

974


Explain use of ‘my’ keyword in perl?

886


What is the peculiarity of returning values by subroutines in perl?

855


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

928


what is the function that is used to identify how many characters are there in a string?

909


What is subroutine in perl?

889


You want to empty an array. How would you do that?

849


For a situation in programming, how can you determine that Perl is a suitable?

834