in reply to Where's my tie ?

First thing I noticed is that: A quick demo:
package myhash; require Tie::Hash; @ISA = (Tie::StdHash); sub DELETE { print "in my own delete"; #it should do something more meaningful, +this is just a demo } 1; myhash.pl: (a testbed) use myhash; tie %a, 'myhash'; delete $a{"a"};

Replies are listed 'Best First'.
Re: Re: Where's my tie ?
by philou (Beadle) on Dec 02, 2002 at 07:29 UTC
    I don't need to use another existing class as a base for my toy::hash package, because I have defined all required methods (I think).
    The other thing is that I know that I should not call tie methods myself but let perl do the job for me.
    The issue is that I get a strange behaviour of the %$H's tie when I do so.

    philou