in reply to Re^2: access to hashes with same name, from different packages with same name
in thread access to hashes with same name, from different packages with same name
I think your problem is that you haven't put the right package names in the .pm files, i.e.
dir_one/my_package.pm --> package dir_one::my_package; dir_two/my_package.pm --> package dir_two::my_package; ^^^^^^^
BTW, if the hash is the only thing in the packages, you can just leave off any package declarations entirely. Then you also don't need the Exporter stuff, as the hash will end up in the main:: namespace anyway... (However, don't do that, if there's other code in the modules!)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: access to hashes with same name, from different packages with same name
by utku (Acolyte) on Feb 11, 2007 at 16:20 UTC | |
by almut (Canon) on Feb 11, 2007 at 16:25 UTC | |
by utku (Acolyte) on Feb 11, 2007 at 16:33 UTC | |
by almut (Canon) on Feb 11, 2007 at 16:56 UTC | |
by utku (Acolyte) on Feb 11, 2007 at 18:08 UTC |