in reply to Why is 'require' not working as I expect?
Any required file only gets loaded once, see perldoc -f require. So your file gets only loaded once. I recommend putting your required file into a module and using that from both packages. You could also load it with do $file.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why is 'require' not working as I expect?
by xdg (Monsignor) on Oct 24, 2005 at 13:39 UTC | |
|
Re^2: Why is 'require' not working as I expect?
by Anonymous Monk on Oct 25, 2005 at 20:19 UTC | |
by Corion (Patriarch) on Oct 25, 2005 at 20:45 UTC | |
by Anonymous Monk on Oct 25, 2005 at 21:34 UTC | |
by Anonymous Monk on Oct 25, 2005 at 22:22 UTC |