Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Executing use'd/require'd/base module code *after* use'r/require'r/child is compiled?

by phaylon (Curate)
on Mar 01, 2009 at 19:57 UTC ( #747342=note: print w/replies, xml ) Need Help??


in reply to Executing use'd/require'd/base module code *after* use'r/require'r/child is compiled?

You could use B::Hooks::EndOfScope in an import method. That's what namespace::clean uses to clean up the package's symbol table after it has been compiled.

I hope this helps, but I'm not sure this exactly fits your use case. Is there a reason you don't want to be more explicit? Like, for example:

wrap foo => sub { ... };

Ordinary morality is for ordinary people. -- Aleister Crowley
  • Comment on Re: Executing use'd/require'd/base module code *after* use'r/require'r/child is compiled?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://747342]
help
Chatterbox?
[zentara]: that would make great screen wallpaper
jedikaiti is glad to see the conditioning persists...
[jedikaiti]: And yes, I have saved down a copy and added it to my walpaper rotation
[zentara]: jedikaiti my condition has a condition :-)
[jedikaiti]: :-D

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2017-08-18 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (304 votes). Check out past polls.

    Notices?