How do i install a perl script on linux/apache with cpanel?

In PERL Does anyone know how to print after you did a search, for the line after the word it.?

For instacne I searched for a period. It is found in the line "….is in 1996"." (this line is followed by) After that it was happily feeding modules through CPAN."

I need to print out the part after the word it , i.e was happily feeding modules through CPAN.

So again I searched for the match of a period. And after that I am to print the next line after that period, starting after the word it.
Hey Jake this is what I have so far.

open(AFILE, $ARGV[0]);

while(<AFILE>){
$string .= $_;
}
if($string =~ /\.|\?|,/){
print $string;
}else{
print "no match";
}

I tried doing the way your were saying and using the:
@wordsAfterPeriods = $sentence =~ /(?<=\. *)\w+/g
but I was getting a compilation error with this.
How can I fit this @ wordsAfterPeriods into what I have so far?

Thanks again for helping me!


Related Blogs

How do I install Perl modules?

My question was closed before I got an answer, so I am going to reopen it.

I’ve been looking all over the place and http://www.cpan.org/misc/cpan-faq.html#H… gives me an answer, but it doesn’t appear to be correct. I look at my perllocal.pod file and there’s no mention of the recently installed module DBIx::MSSQLReporter. I used CPAN.pm to do the install and got no errors. Additional comments on the subject can be found at http://forums.mozillazine.org/viewtopic…. and http://ubuntuforums.org/showthread.php?t… I don’t have enuogh characters here to list my perllocal.pod. An earlier incarnation was posted at ubuntuforums. Is it possible I have two perllocal.pod or another place where the installation could be verified? Thanks!
anybody who re-read the forum posts would see there is a new perllocal.pod that does not have the perl installation issues.
Again, anyone that read the forum posts would know the OS….Windows and the installation method, active state.
ugh, just realized when I copied and pasted Yahoo! Answers replaced the links with "…" so here are the posts again:

http://www.cpan.org/misc/cpan-faq.html#How_installed_modules

http://forums.mozillazine.org/viewtopic.php?t=625882

http://ubuntuforums.org/showthread.php?t=693865.

additional info now added at: http://ubuntuforums.org/showthread.php?t=693865
I decided to start over on a new XP box. I installed from the ActivePerl MSI version @ 5.10.0.1002. Still get the same error…
I won’t be able to test this until Friday at the earliest, but I think this may help me: http://search.cpan.org/src/RSAVAGE/DBIx-MSSQLReporter-1.04/README

Likely, I won’t be able to touch that machine until Monday…after the question expires…


Related Blogs

sample script to extract text from pdf files using PERL?

I tried a lot thru CPAN to extract text from pdf .but the result was only junks.can any one pls help me how to extract the text from pdf


Related Blogs

In PERL Does anyone know how to print after you did a search, for the line after the word it.?

For instacne I searched for a period. It is found in the line "….is in 1996"." (this line is followed by) After that it was happily feeding modules through CPAN."

I need to print out the part after the word it , i.e was happily feeding modules through CPAN.

So again I searched for the match of a period. And after that I am to print the next line after that period, starting after the word it.


Related Blogs