lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev Lynx Question


From: David Combs
Subject: Re: lynx-dev Lynx Question
Date: Sat, 27 Feb 1999 15:28:09 -0800

On Thu, Feb 25, 1999 at 01:32:18PM +0000, Ian Whitfield wrote:
> Hi,
> 
> I don't know if this is the right place to ask this question, if it
> isn't
> i'm sorry.
> 
> I'm trying to run lynx from within a perl script but get an error back
> when i try to return a url which includes the '?' character.
> 
> The Script is -
> 
> #!/opt/bin/perl
> 
> $SITELIST =
> "www.thisisstaffordshire.co.uk/scripts/edsection.asp?section=Local+sports";
> 
> open(SITE, $SITELIST);
> while ($site = <SITE>) {
> 
> open(FILE,"/opt/bin/lynx -dump $site |") or die "can't open header
> file";
> 
> while ($line = <FILE>) {
> 
>                 if ($line =~ /shrews/i) {
>                 print "$line \n";
>                 }
>         }
> }

I'm no perl expert, but isn't that open() just an ordinary
FILE open?

Doesn't that CPAN perl library have a module that is exactly
designed for just what you want to do?  Check out one of your
perl books; you'll see.

David

reply via email to

[Prev in Thread] Current Thread [Next in Thread]