in reply to Use cases for hooks in @INC?

PAR, Portable, Re: how to make lexical pragma global, hints ( pl_hints $^H %^H ), taint::all (package taintall)

@INC.*\\& · CPAN->grep -> lib::http, Module::AutoLoad, persona

use.lib.*\\& · CPAN->grep -> Devel::Hide

So the basic use case is the same as for Filter::Simple

Replies are listed 'Best First'.
Re^2: Use cases for hooks in @INC?
by LanX (Saint) on Apr 20, 2016 at 22:43 UTC
    Thanks, cpan-grep is a clever approach.

    Using the word hook instead of \\& gives additional hits.

    > So the basic use case is the same as for Filter::Simple

    Altering existing modules is one use case.

    Another is loading existing modules from other sources like usb-sticks or via http.

    I wonder if there is a use case where a module's source is generated on the fly.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!