in reply to How to update package scoped variables across files?

Hi, welcome to the monastery. Please take a look at http://www.perlmonks.org/?node_id=174051 which includes:

Here's the short version: If you want to get good answers: Paste actual code that reproduces the + problem between <code> and </code> tags.

This usually means you should be able to copy the code you post, paste it into a text file and have Perl run it. Since your file is a package I just did perl -c filename on it.

The code you posted doesn't compile. The pragma is called warnings not warning. And although you export a hash, you declare a hashref (although you do try to populate it as if it were a hash, so I can't tell which typo is which).

You obviously tried to make a demo script, so kudos for that ... but you should take time to check it. As far as what you are trying to do: as hippo said, there are many solutions. Try just printing the hash out to a file and then opening it in the next script. That's a completely wrong way to do it for "production" -- there are modules that do the same thing but with tons of error-handling and portability etc) -- but it would be good practice in working with files...

The way forward always starts with a minimal test.