Aaron Kilbey aaronkilbey at
Wed Jul 10 12:00:14 CDT 2002

So I used the following from yesterday:


use LWP::Simple;
&getstore( $url, $file );

...and when I run "bash$ perl" it writes news.xml fine, but
when I try to do http://myserver/cgi-bin/ in a web browser,
is not updated ??? - a.

-----Original Message-----
From: Ovid [mailto:poec at] 
Sent: Tuesday, July 09, 2002 2:38 PM
To: Aaron Kilbey; pdx-pm-list at
Subject: Re: FW: Lynx???

--- Aaron Kilbey <aaronkilbey at> wrote:
> Aloha everybody - 
> I'm attempting to issue an http request through lynx to save an XML
> to a local server. 
> Here's the code:
> #!/usr/bin/perl
> system("lynx -dump
> > news.xml"); 

A more portable solution:

  use LWP::Simple;
  getstore( $url, $file );

Or better:

  mirror( $url, $file );

You can verify this from the command line:

  perl -MLWP::Simple -e

You'll also want to check the is_success() function in that module.

Curtis "Ovid" Poe

"Ovid" on
Someone asked me how to count to 10 in Perl:
push at A,$_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//;
shift at a;shift at a if $a[$[]eq$[;$_=join q||, at a};print $_,$/for reverse @A

Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free

More information about the Pdx-pm-list mailing list