Do you want to find the coderef of foo from _within_ a pre or post handler?
If so, I imagine that's more or less equivalent to finding a coderef for 'bar' from within 'foo', given sub xxx { foo(); bar(); baz(); } It can certainly be done using Want-like techniques, but it'll make you go blind... .robin.