develooper Front page | perl.perl5.porters | Postings from February 2013

Re: Keeping track of used modules (Was: Perl 7 or Perl 2013?)

Thread Previous | Thread Next
From:
David Cantrell
Date:
February 18, 2013 12:32
Subject:
Re: Keeping track of used modules (Was: Perl 7 or Perl 2013?)
Message ID:
20130218123224.GA1562@bytemark.barnyard.co.uk
On Wed, Feb 13, 2013 at 10:51:52AM -0500, David Golden wrote:

> If you don't want to rely on END, then the other way I'd go about it
> would be to use an @INC hook to record things at require time.  You
> have a little trickiness if things modify @INC ('use lib').

You could always provide your own lib::import, like Sub::WrapPackages
does.

> (I also wonder if %INC is tie-able?)

I vaguely recall trying to do that in the past, and failing.

-- 
David Cantrell | semi-evolved ape-thing

    All children should be aptitude-tested at an early age and,
    if their main or only aptitude is for marketing, drowned.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About