I have a perl program using several modules. One of these modules say 'A' contains a data-hash being initialized with values (and is intended to remain some kind of constant data structure). The program also uses another module, say B. Module B itself also includes a "use A" call (to access a function from that module).
I now have the funny thing that when I run the program it turns out that for some reason data in the hash of module A no longer seems to be initialized. If I remove the "use A" call in module B the program runs fine. I've been googling about using modules (containing data) in modules but did not find a lot (of my query was not too well...).
Does someone have an idea how this behaviour is caused and how to get around this?
Thanks.