in reply to Sharing a variable between (>=) 2 files

Do you want to run both programs simultaneously? If yes, you need some inter process communication, see perlipc.

If not, you can store your data in a file by using some serialization scheme, like YAML, Data::Dumper or XML.

Or do you want to have a static data structure, that is used in both files? Then you probably want to write a module.

  • Comment on Re: Sharing a variable between (>=) 2 files

Replies are listed 'Best First'.
Re^2: Sharing a variable between (>=) 2 files
by dichtfux (Sexton) on Nov 30, 2007 at 22:51 UTC
    I wanted the latter, but it turned out that everything worked well. Problem was something different, see the next post.