No I want to match on a line by line basis. I also need to include the "the." In what is printed out.
Here is another example:
my $file = $ARGV[0];
open(INPUT, $file)
or die "Couldn't open $file for reading: $!\n";
while (<INPUT>) {
if (m/(it.*[?,.])$/i) {
print "$1\n";
}
}
close(INPUT);
Here is the file I want to scan:
Tim created the Module List in August 1994 and maintained it manually till
April 1996. By that time Andreas had implemented the Perl Authors Upload
Server (PAUSE) and it was happily feeding modules through to the CPAN archive sites.
Since PAUSE held a database of module information which could be maintained by module authors
it made sense for the module listing part of the Module List to be built
from that database. In April 1996 Andreas took over the automatic posting of
the Module List and I now maintain the other parts of the text. We plan to add
value to the automation over time.
I need this to output only: "it was happily feeding modules through to the CPAN archive sites."