in reply to Most efficient way to share blessed refence among packages

It would be better to avoid making the Queue module dependent on the Registry module at all. You could allow the Queue constructor to take a Registry object as an argument but it's not a good idea.

It would be better to extract the information that you need from the Registry and pass it to the Queue constructor as you need to. The following code is entirely hypothetical as I have no idea how your modules work but I would do it something like:

use Registry; use Queue; my $registry = Registry->new(); my $queue = Queue->new( $registry->GetValue('MaxQueueSize') );
-sauoq
"My two cents aren't worth a dime.";