in reply to Extending & Embedding Perl simultaneously: How to share a scalar between perl callback sub and main body?

Try prefixing you global var with our:

our $cb_done :shared = 0;

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP PCW It is as I've been saying!(Audio until 20090817)
  • Comment on Re: Extending & Embedding Perl simultaneously: How to share a scalar between perl callback sub and main body?
  • Download Code