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 are the logical operators used for small scale operations? Explain them briefly.

941


What does perl do in linux?

904


How to open and read data files with Perl

1008


How to read file into hash array ?

1039


How to remove a directory in perl?

935


what are the three groups involved in information sharing?

848


Which functions in perl allows you to include a module file. State their differences.

913


How to do comment in perl?

920


Explain the execution of a program in perl.

937


How to implement a stack in Perl?

965


what are prefix dereferencer and list them out?

985


What is 'commit' command in perl?

1054


How does a “grep” function perform?

987


How to convert arrays into a string in perl?

903


What is goto statement in perl?

904