At 12:47 AM -0500 2/11/01, James Munroe wrote:
>I am using the latest MacPerl (v. 5.20r4) and have installed the the
>LWP::Parallel::UserAgent module with its associated modules. (I have
>installed lib-www v. 2.48 and Parallel::UserAgent v. 5.48, which are
>supposed to be mutually compatible.) I have changed the filetypes
>apporpriately to MacPerl text files, since this was giving me 
>initial difficulty.
>
>The problem is, even when I have a script with only the line
>
>use LWP::Parallel::UserAgent;
>
>the MacPerl syntax checker says
>
>"LWP/Parallel/UserAgent did not return a true value"
>
>I have not had this problem with the single-thread LWP::UserAgent. I
>have written scripts with it that work just fine. When I run the syntax
>checker on LWP::Parallel::UserAgent itself, it checks out just fine.
>
>What can be wrong?

The usual cause of this particular error is that you did not convert 
all the files to Mac end-of-line.  They're probably still Unix 
end-of-line.  There are many tools available to fix this.  Personally 
I use either a Contextual Menu module from Trygve's collection or 
OddJobs.  Both may easily be found by searching at 
<http://www.versiontracker.com>

If you used Stuffit Expander to unpack the .tar.gz and Mac OS 9, you 
need to open the File Exchange control panel and make sure that .pm 
is assigned to MacPerl with type TEXT.  (By default it's some image 
format.)

But in this particular case, you'd be wasting your time. 
LWP::Parallel won't work under MacPerl, for reasons I've long ago 
forgotten.  If you absolutely need to use LWP::Parallel on your Mac, 
you'll need to use a different operating system.  Either wait two 
months for Mac OS X, or install Linux or *BSD.

LWP itself, on the other hand, works just fine.  If you don't need 
the parallelism of LWP::Parallel, simply use LWP.
-- 
--
Paul Schinder
[EMAIL PROTECTED]

Reply via email to