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

Discussion in 'Perl' started by Dave Stallard, Apr 1, 2008.

  1. 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
     
    Dave Stallard, Apr 1, 2008
    #1
    1. Advertisements

  2. Dave Stallard

    John Bokma Guest

    Dave Stallard <> 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?

    --
    John

    http://johnbokma.com/perl/
     
    John Bokma, Apr 1, 2008
    #2
    1. Advertisements

  3. John Bokma wrote:
    > Dave Stallard <> 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.
     
    Dave Stallard, Apr 2, 2008
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    645
    Kevin Spencer
    May 16, 2005
  2. fredd00
    Replies:
    2
    Views:
    1,591
    fredd00
    Sep 3, 2005
  3. Klaus Schneider
    Replies:
    1
    Views:
    803
    Rolf Magnus
    Dec 2, 2004
  4. rabbits77
    Replies:
    0
    Views:
    629
    rabbits77
    Nov 24, 2003
  5. Tim Peters
    Replies:
    5
    Views:
    502
    Andrew MacIntyre
    Nov 25, 2003
  6. jon wayne
    Replies:
    9
    Views:
    1,054
    Jim Langston
    Sep 22, 2005
  7. lander
    Replies:
    5
    Views:
    868
    bruce barker
    Mar 5, 2008
  8. David Mathog
    Replies:
    9
    Views:
    745
    Ian Collins
    May 26, 2012
Loading...