Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^7: How to import "global" variables into sub-scripts from main script?

by LanX (Saint)
on Mar 22, 2021 at 17:00 UTC ( [id://11130146]=note: print w/replies, xml ) Need Help??


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

> 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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11130146]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-18 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found