Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Which "use" statements in a module do "bubble up" to the callers? [SOLVED]

by LanX (Saint)
on Sep 01, 2017 at 14:23 UTC ( [id://1198516]=note: print w/replies, xml ) Need Help??


in reply to Which "use" statements in a module do "bubble up" to the callers? [SOLVED]

For completeness, you can use a do FILE (and consequently a require and use if the code is included before the package statement of the pm file) to eval a file in place.

Like this you can technically include package variables, constants and functions.

Most people would consider this a dirty hack.

And it will not export use s of file scoped pragmas and modules and lexical variables.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-19 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found