Re: LWP & threads....
Blair Zajac (bzajac@geostaff.com)
Fri, 30 Jul 1999 19:32:22 -0700
This is a multi-part message in MIME format.
--------------4E0F7607CAC696765BB60965
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
You can use WebFS::FileCopy to do what you want. It
does simultaneous downloads. It's available from CPAN for
from ftp://ftp.gps.caltech.edu/pub/blair/Perl/
Blair
Pete wrote:
> Question,
>
> Ive been writing a program to pull down multiple pages from multiple
> servers and place the output to a single file...
>
> Now I have been using sockets and threads to pull them down at the same
> time, but have been getting inconsistant results...
>
> So I thought I would try to use LWP...
>
> Is it possible to use threads with LWP? Everytime I try, whichever thread
> is started first dumps to the file, but the second and third threads do
> apparently nothing...
>
> Now... pulling each file in sequence would work except for the fact of
> cumulative time...
>
> Is there a way to use lwp AND threads?
>
> Pete
--------------4E0F7607CAC696765BB60965
Content-Type: text/x-vcard; charset=us-ascii;
name="bzajac.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Blair Zajac
Content-Disposition: attachment;
filename="bzajac.vcf"
begin:vcard
n:Zajac;Blair
tel;fax:310-827-8177
tel;work:310-827-3700 x1703
x-mozilla-html:TRUE
url:www.geocities.com
org:Yahoo!/GeoCities
adr:;;4501 Glencoe Avenue;Marina del Rey;CA;0292;USA
version:2.1
email;internet:bzajac@geostaff.com
title:Technical Yahoo!
x-mozilla-cpt:;-6624
fn:Dr. Blair Zajac
end:vcard
--------------4E0F7607CAC696765BB60965--