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

Re: How do I check if imports are actually used?

by LanX (Chancellor)
on Sep 16, 2013 at 13:37 UTC( #1054296=note: print w/replies, xml ) Need Help??


in reply to How do I check if imports are actually used?

2 possibilities come to mind

  • Use B::Xref to parse each source file potentially using your modules

  • extend deprecated functions to log the caller each time they are called.

    Attribute::Handlers could be used to build such wrappers.

    Update

  • you can also extend the importer() of your modules to check the importing files.

    Cheers Rolf

    ( addicted to the Perl Programming Language)

    • Comment on Re: How do I check if imports are actually used?
  • Log In?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (2)
    As of 2016-08-30 00:41 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      The best thing I ever won in a lottery was:















      Results (410 votes). Check out past polls.