http://www.perlmonks.org?node_id=1063363


in reply to How to share a group of functions with multiple main processes?

Some hints:

  1. Use modules.
  2. Nothing in your code blocks (that I can see), but you have infinite loops printing vast swathes of data, so it might seem that way.
  3. Really, use modules.