[Spread-users] PERL issues...
Michael C. Jackson
mcj at corp.halfpricehosting.com
Thu Feb 21 16:45:22 EST 2002
It errors in Spread:connect - I'll show you all everything that I have
done.
[mcj at singularity dev]$ ./SpreadListener.pl
Can't use string ("spread_name") as a HASH ref while "strict refs" in
use at /usr/lib/perl5/site_perl/5.6.0/i386-linux/Spread.pm line 158.
Here's the script:
#!/usr/bin/perl
$| = 1;
use Spread;
sub cleanup() {
Spread::disconnect($mailbox);
exit(0);
}
$SIG{INT} = "cleanup";
my($mailbox, $private_group) = Spread::connect(
spread_name=>'4803 at localhost',
private_name=>'test.singularity') or die();
Spread::join($mailbox, 'test') or die();
print "Hey, hey! Made it this far\n";
while (1) {
my(@stuff) = Spread::receive($mailbox, 1);
print ".";
foreach (@stuff) {
print "\n$_";
}
print "\n";
}
-----Original Message-----
From: Theo Schlossnagle [mailto:jesus at omniti.com]
Sent: Thursday, February 21, 2002 4:35 PM
To: Michael C. Jackson
Cc: spread-users at lists.spread.org
Subject: Re: [Spread-users] PERL issues...
On Thursday, February 21, 2002, at 04:25 PM, Michael C. Jackson wrote:
> Anyone else getting the whole 'Can't use string(4803 at localhost) as a
> HASH ref while "strict refs" is in use' error when trying to use the
> perl module, or did I just do something dumb when installing
> everything?
Create example code that triggers this problem (as few lines as
possible)... Post it here. Then we can help.
--
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
_______________________________________________
Spread-users mailing list
Spread-users at lists.spread.org
http://lists.spread.org/mailman/listinfo/spread-users
More information about the Spread-users
mailing list