in reply to Sharing Global variables between scripts

Read perldoc Exporter.

Update: Ahh, I stopped reading at the error about the unqualified sub name. If you're trying to share variables between processes you need something like IPC::Shareable.