473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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
Apr 1 '08 #1
2 1576
Dave Stallard <st******@nospam.netwrote:
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/
Apr 1 '08 #2
John Bokma wrote:
Dave Stallard <st******@nospam.netwrote:
>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.
Apr 2 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Istvan Albert | last post by:
Hello all, if I have this code: import sets class Foo: x = sets.Set() then pychecker says:
5
by: Andrei Pociu | last post by:
I have a major doubt about outputting text in ASP .NET when using code behind. I know most of the output you gain from a code behind file (.aspx.cs) is outputted to the Webform (.aspx) using...
0
by: Kishore Gopalan | last post by:
Hi, I'm building a ASP.NET solution. The solution works fine on one machine but on another machine it throws the exception "System.Security.SecurityException: Failure decoding embedded permission...
1
by: Ram | last post by:
Hi All, I am using Object Data Source to bind data in the gridview. I have set the property AllowSorting=true. While running the application, I could sort the data only in ascending order. Is...
0
by: Dick | last post by:
I have a shared project that contains icons and bitmaps that are used throughout my suite of applications. I have to set Form.Icon, PictureBox.Image, etc. using code because the form designer...
5
by: Victor Reboucas | last post by:
Hi, I'm sure I'm missing something here, but.... I have a asp.net 2.0 web form and a calendar control. If I set the selectedDate clicking the control, no problem, but, if I set it using code I...
0
by: sajithamol | last post by:
I have a dll of a VB application which performs image manipulations. I want to build this dll file into a .cab file to embed this in the Object tag in client side. Also how to generate the classid...
9
by: Duggi | last post by:
I used to wonder why MS implemented C# to accept the following code using (Font f = new Font()) { // some code here. } While the same can be achieved through {
12
by: Duggi | last post by:
I used to wonder why MS implemented C# to accept the following code using (Font f = new Font()) { // some code here. } While the same can be achieved through {
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.