Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5: Using hashes for set operations...

by John M. Dlugosz (Monsignor)
on May 23, 2011 at 20:21 UTC ( #906360=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Using hashes for set operations...
in thread Using hashes for set operations...

I'm thinking X, you're thinking Y: more food for the FAQ. There are different problems to be solved.

Stringification on an object: The overloaded stringify function might not be what you want for this specific call to intersection. Just like you can sort different ways, you want to identify matches some custom way for this operation alone.

I'll read those links and reply more later. (Oh, that's not a link, it's an unescaped [).


Comment on Re^5: Using hashes for set operations...
Download Code
Re^6: Using hashes for set operations...
by LanX (Canon) on May 23, 2011 at 20:30 UTC
    > The overloaded stringify function might not be what you want for this specific call to intersection.

    Sure but you can't solve all possible tasks at the same time. The stringification of an objectref is IMHO a reasonable default, which should be configurable of course.

    Cheers Rolf

      I agree. Default is built-in stringification, which gives object identity or any existing overloaded stringify for that object.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-12-19 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (70 votes), past polls