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

> why wouldn't strict be shared

It would make using any non-strict module from a strict script impossible.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re^5: How to import "global" variables into sub-scripts from main script?
  • Download Code

Replies are listed 'Best First'.
Re^6: How to import "global" variables into sub-scripts from main script?
by Polyglot (Chaplain) on Mar 22, 2021 at 10:35 UTC

    I'm not useing a module (.pm); I'm requireing a companion perl script (.pl). When one uses a module, naturally that module has its own autonomy with what it requires and uses.

    Blessings,

    ~Polyglot~

      > When one uses a module, naturally that module has its own autonomy with what it requires and uses.

      No idea what you mean, a use is basically a require + import at compile-time

      Like documented:

      BEGIN { require Module; Module->import( LIST ); }

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