Connecting Tech Pros Worldwide Help | Site Map

Using Set::Object - evidently I need compiled code?

  #1  
Old April 1st, 2008, 03:25 AM
Dave Stallard
Guest
 
Posts: n/a
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
  #2  
Old April 1st, 2008, 07:05 AM
John Bokma
Guest
 
Posts: n/a

re: Using Set::Object - evidently I need compiled code?


Dave Stallard <stallard@nospam.netwrote:
Quote:
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?

--
John

http://johnbokma.com/perl/
  #3  
Old April 2nd, 2008, 01:35 AM
Dave Stallard
Guest
 
Posts: n/a

re: Using Set::Object - evidently I need compiled code?


John Bokma wrote:
Quote:
Dave Stallard <stallard@nospam.netwrote:
>
Quote:
>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.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
New to c++, need help with advanced topics macAWM@gmail.com answers 22 December 6th, 2005 12:35 PM
Searching for an object in a component YunusEmre answers 8 November 19th, 2005 03:05 PM
"using" vs "= null" and object lifetime MuZZy answers 14 November 16th, 2005 08:44 PM
Using RestrictedPython Rasjid Wilcox answers 1 July 18th, 2005 04:18 AM
Using pointers in Java S Manohar answers 6 July 17th, 2005 11:42 PM