[Spread-users] PERL issues...

Michael C. Jackson mcj at corp.halfpricehosting.com
Thu Feb 21 17:54:21 EST 2002


That documentation example was driving me batty, good (well, not for you
all, but for my sanity) to know that there are typos.

And... I did indeed run the Spread daemon on the wrong machine when I
was testing.  I'm getting return values now.  That'll make a difference.

Thanks for all your help.

-----Original Message-----
From: Theo Schlossnagle [mailto:jesus at omniti.com] 
Sent: Thursday, February 21, 2002 5:50 PM
To: Michael C. Jackson
Cc: spread-users at lists.spread.org
Subject: Re: [Spread-users] PERL issues...


On Thursday, February 21, 2002, at 05:44  PM, Michael C. Jackson wrote:
> Well, I made the changes, and now Spread::join fails.  I tried 
> printing what Spread::connect returns, but it appears to be null.
>
> For example:
>
> @returned=Spread::connect({
>   spread_name => '4803',
>   private_name => 'test'
> });
>
> foreach(@returned) {
>   print "|$_|";
> }

Read the docs.  If you have installed the perl Spread module.  You 
should be able to say:
perldoc Spread
or man Spread

Spread::connect doesn't join anything.  Spread::join does.  
Spread::connect doesn't return of list of groups.

Spread::connect should return  ($mailbox, $privategroup) as a list.

If $mailbox is undef, your connect failed.  This isn't a problem with 
perl or Spread, it probably means your spread daemon isn't running or 
isn't running on the port you think...

> Thinking about just giving up and using C.

You are using C... it just looks like perl ;-)  (Spread.pm is written in

xs)

--
Theo Schlossnagle
1024D/82844984/95FD 30F1 489E 4613 F22E  491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA  3D 90 B9 9F BE 27 24 E7






More information about the Spread-users mailing list