Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to first decompress a module and then load it locally

by Corion (Patriarch)
on Aug 28, 2020 at 13:48 UTC ( [id://11121144]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11121144]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-29 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found