http://www.perlmonks.org?node_id=1054296


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?