On Fri, 2006-04-07 at 16:36 -0400, [EMAIL PROTECTED] wrote:
> On Fri, 07 Apr 2006 16:02:53 -0400, Oliver Block <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
> >
> >> I understand regex, but the following fails:
> >> open PAGE, 'c://redcross.htm';
> >> while( my $line = <PAGE> ) {
> >> # $line =~ /Health and Safety Classes/
> >> # print "$1\n";
print "$1\n" if $line =~ /Health and Safety Classes/;
> >> }
> >
> > What fails? Your forget a ';' after the regex but I guess that's not
> > what you
> > mean!? :)
> >
> > cu,
> >
> > Oliver
> >
> >
> Now that was pretty basic. So now that script runs, but I get the full
> page. I was trying to limit the result to the words /Health and Safety
> Classes/ that appear on the page. How do I get there?
>
> Ken
>
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>