Using Set::Object - evidently I need compiled code?
  Home FAQ Contact Sign in
comp.lang.perl.modules only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.perl.modules Profile…
 Up
Using Set::Object - evidently I need compiled code?         


Author: Dave Stallard
Date: Mar 31, 2008 19:21

I'd like to have sets of references (I'm from Java; I'm a Set guy). I
understand that you cannot use a reference as a hash key, and that it
gets stringified if you try. So, to make my Set object, I've been
hashing the reference to itself (or more properly, hashing the
stringification to the reference).

I would like to not reinvent the wheel, however, and have found
Set::Object. But it doesn't work when I try to 'use Set::Object',
claiming it can't find something (even though the module is in the
path). The doc for Set::Object refers to XS code, which I gather is
lower-level C stuff. Do I need to link to a DLL or Shared Object or
something? Or worse yet, build it? BTW, I'd like this to run on both
XP and Linux.

Thanks, and sorry for the elementary question.

Dave
3 Comments
Re: Using Set::Object - evidently I need compiled code?         


Author: John Bokma
Date: Mar 31, 2008 22:59

Dave Stallard nospam.net> wrote:
> I would like to not reinvent the wheel, however, and have found
> Set::Object. But it doesn't work when I try to 'use Set::Object',
> claiming it can't find something

Why didn't you post the "claim" (message) you got?

no comments
Re: Using Set::Object - evidently I need compiled code?         


Author: Dave Stallard
Date: Apr 1, 2008 17:26

John Bokma wrote:
> Dave Stallard nospam.net> wrote:
>
>> I would like to not reinvent the wheel, however, and have found
>> Set::Object. But it doesn't work when I try to 'use Set::Object',
>> claiming it can't find something
>
> Why didn't you post the "claim" (message) you got?

Hmm, why not indeed. Here it is:

perl test-set.pl
Can't locate loadable object for module Set::Object in @INC (@INC
contains: C:/Program Files/Perl/site/lib C:/Program Files/Perl/lib .) at
test-set.pl line 4
Compilation failed in require at test-set.pl line 4.
BEGIN failed--compilation aborted at test-set.pl line 4.
no comments
Re: Using Set::Object - evidently I need compiled code?         


Author: sisyphus
Date: Apr 1, 2008 19:21

On Apr 2, 11:26 am, Dave Stallard nospam.net> wrote:
> John Bokma wrote:
>> Dave Stallard nospam.net> wrote:
>
>>> I would like to not reinvent the wheel, however, and have found
>>> Set::Object.  But it doesn't work when I try to 'use Set::Object',
>>> claiming it can't find something
>
>> Why didn't you post the "claim" (message) you got?
>
> Hmm, why not indeed.  Here it is:
>
> perl test-set.pl
> Can't locate loadable object for module Set::Object in @INC (@INC
> contains: C:/Program Files/Perl/site/lib C:/Program Files/Perl/lib .) at
> test-set.pl line 4
> Compilation failed in require at test-set.pl line 4.
> BEGIN failed--compilation aborted at test-set.pl line 4.
Show full article (1.83Kb)
no comments