in reply to How to first decompress a module and then load it locally
Maybe you can help us provide better solutions for the problem by telling us more about the actual problem you're trying to solve?
Other than that, the straightforward approach is:
BEGIN{system("tar -xzvf XX.tar.gz")} use strict; use lib "./" use XX;
... or, according to BEGIN:
system("tar -xzvf XX.tar.gz"); use strict; require './XX.pm'; XX->import();
Also see Module::Load maybe.
|
|---|