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



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

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

More CGI Perl Interview Questions

How do you debug a Perl scripting ( at the compile time error or run time error) in Unix environment ?

4 Answers  


sort a word "system" in perl/shell without using built in functions output should be emssty

2 Answers   emc2,


How many types of variable in perl?

0 Answers  


There are two types of eval statements i.e. Eval expr and eval block. Explain them.

0 Answers  


In CPAN module, name an instance you use.

0 Answers  


What is warn function in perl?

0 Answers  


Where do we require ‘chomp’ and what does it mean?

0 Answers  


Does Perl have reference type?

0 Answers  


How would you trap error occurred in the perl program/file?

3 Answers   IBM,


Can you add two arrays together?

0 Answers  


In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?

0 Answers  


What is caller function in perl?

1 Answers  


Categories