in reply to Re^5: How to import "global" variables into sub-scripts from main script?
in thread How to import "global" variables into sub-scripts from main script?

> Only evaled code inherits the strict and other pragmas from the surrounding lexical scope.

and because of the lexical scoping he can also deactivate most pragmas like strict before eval to avoid that problem

{ no strict; eval $CODE; }

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^6: How to import "global" variables into sub-scripts from main script?
  • Download Code