Allison Ogle wrote:
>
> To give you even more information, in my datafile, the word that I am
> searching for is 'marked' by the word in the line before it. For example,
> the lines in my datafile look like..
>
> line 1
> line 2
> line 2
> Installation
> example
> Installation
> line 4
> line 5
chomp $word;
print $word;
; #read past one more line to skip the next "installation"
}
}
-Original Message-
From: Agustin Rivera [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 9:25 AM
To: Allison Ogle; [EMAIL PROTECTED]
Subject: Re: Search for a wor
while()
{
$firstword=$middleword;
$middleword=$lastword;
$lastword=$_;
if ($firstword eq "Installation" && $lastword eq "Installation")
{
print "FOUND $middleword\n";
}
Would that work?
Regards,`
Agustin Rivera
Webmaster, Pollstar.com
http://www.pollstar.com
--