From: Judson Lester Date: 2008-02-21T11:01:56+09:00 Subject: Re: trouble with threads On Wed, Feb 20, 2008 at 5:24 PM, MenTaLguY wrote: > 'index' is indeed independent here; @agent being shared, however, is > very likely to cause problems. As far as I know, WWW::Mechanize agents > are not safe for use by multiple threads. Each thread will need its > own agent. That agrees completely with my direct experience. WWW::Mechanize is, sadly, not threadsafe - it reuses a buffer for each request, and if you start a new request before another completes, the new request will clobber the input buffer. I gladly share my painfully won experience with you. Judson -- Your subnet is currently 169.254.0.0/16. You are likely to be eaten by a grue.