in reply to Prevent import of subroutines from eval

You could use throw-away package names as target for the imports.

Since you get these redefined messages I suppose they are normally imported into main.

If your "files-beyond-scope" already have package declarations on their own, this won't work.

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re: Prevent import of subroutines from eval