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?? |
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
In Section
Seekers of Perl Wisdom
|
|