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

write a Perl script to find a particular word in a paragraph???

Answer Posted / guest

[code]
my $pat;
$pat='Using push we can add multiple items into an array in
a single instance.
If we are trying to add a module or library files in
our program using require or use statement then it will
search that module or library files in the Perl\'s default
search path.

The statement use lib is used to add the directories
to default search path.

So if the module or library file is not located in
the Perl\'s default search path then it will find the
library files in the path we have given with the use lib
$path.';

if($pat=~/push/)
{
print "Pattern push get matched\n";
}
[/code]

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of “_file_ literal” and “_line_ literal” in perl?

961


Which has the highest precedence, List or Terms? Explain?

952


Explain gmtime() function in perl?

1021


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

1215


How to code in perl to implement the tail function in unix?

985


How to compare two strings in perl?

993


Comment on data types and variables in perl.

982


What is perl pop array function?

1001


When do you use perl programming?

1039


If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?

1087


What are arrays in perl?

1016


What syntax is used for grep() function?

1266


What are the arguements we normally use for perl interpreter?

1021


you are required to replace a char in a string and store the number of replacements. How would you do that?

977


Write a cgi program to show the header part?

1041