Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by LanX (Canon)
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 romping around the Monastery: (9)
    As of 2015-07-28 04:57 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (252 votes), past polls