Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Set modules and object comparison

by Joost (Canon)
on Sep 17, 2007 at 19:26 UTC ( [id://639467]=note: print w/replies, xml ) Need Help??


in reply to Set modules and object comparison

Set::Scalar appears to key objects by stringification, so you could probably use
use overload '""' => sub { "SomePrefix".$_[0]->id };
in your object class to exploit that.

Or you could use Set::Scalar::Valued (included in the Set::Scalar distribution) which allows you to explicitly specify a key and the associated object.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://639467]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-19 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found