in reply to isolating slurped-in code to a namespace
In your main file, add a package from where you do nothing than to slurp in that external code. The external code will then be part of this package, which is not the Main package.
Everything went worng, just as foreseen.
In Section
Seekers of Perl Wisdom