Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by Polyglot (Friar)
on Mar 22, 2021 at 10:35 UTC ( #11130097=note: print w/replies, xml ) Need Help??


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?

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~

Replies are listed 'Best First'.
Re^7: How to import "global" variables into sub-scripts from main script?
by LanX (Sage) on Mar 22, 2021 at 17:00 UTC
    > 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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2021-09-24 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?