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.
In reply to Re: Why is 'require' not working as I expect?
by Corion
in thread Why is 'require' not working as I expect?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |