in reply to Unavoidable "untie attempted while inner references" with fork()?

If your tie class provides an UNTIE method (even an empty one), the warning is bypassed under the theory that you know what you are doing.

But the extra reference seems to be just a bug in IPC::Shareable; it happens even without the fork.

Update: bug may be too strong a word; you could do $foo->remove() in the child before the untie.

  • Comment on Re: Unavoidable "untie attempted while inner references" with fork()?

Replies are listed 'Best First'.
Re^2: Unavoidable "untie attempted while inner references" with fork()?
by saintmike (Vicar) on Jul 18, 2006 at 23:57 UTC
    Yeah, nice find, this solution falls into the 'suppress warning' category:
    ... package IPC::Shareable; sub UNTIE {}; package main; ...