in reply to Re: unique identifiers for gtk2 canvas objects?
in thread unique identifiers for gtk2 canvas objects?

isn't ($box==$item) in the example you give? as far as i understand the connected sub gets called with the reference of the object and the event.

but anyway, i don't see how this would help me. what i whould like to have is something i can use as a key in a hash ref that would hold some related data.

come to think of it, can't you use objects as hash keys?

  • Comment on Re^2: unique identifiers for gtk2 canvas objects?

Replies are listed 'Best First'.
Re^3: unique identifiers for gtk2 canvas objects?
by Tanktalus (Canon) on Feb 09, 2005 at 22:58 UTC

    Can't you use the $item as a hash ref? :-)