Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: A Home For Perl Modules

by raptnor2 (Beadle)
on Oct 21, 2004 at 01:34 UTC ( [id://401032]=note: print w/replies, xml ) Need Help??


in reply to A Home For Perl Modules

Why not load Perl modules from an HTTP server? I know this sounds a little odd, but the Java community started this practice to publish standard libraries that applications servers (not just J2EE stuff) could pull the most recent code from a known place on startup. Java uses an HTTP class loader (similar to Applets) for this.

I don't have time to search CPAN for this, but I would assume that this would be pretty easy to do with Perl and that someone has already done it. If not, it seems that some startup code could be run to:

  • 1.Get a list of files from a CGI or SOAP script.
  • 2.Download each file path that is returned (from any HTTP source).
  • 3.Place them in some local directory.
  • 4.Add this directory to Perl's library path.
  • 5.Start running the rest of your code.
The benefit is your local Perl installations would only need a boot loader to pull the rest of the files down to run. You only need to publish your application code to some HTTP server and write a CGI/SOAP script to list them.

An idea anyway (and one that should work on Win32 without a problem).

Cheers,

John

Replies are listed 'Best First'.
Re^2: A Home For Perl Modules
by tomhukins (Curate) on Oct 21, 2004 at 10:36 UTC
    I don't have time to search CPAN for this, but I would assume that this would be pretty easy to do with Perl and that someone has already done it.

    Yes, it's already been done and it's in the Acme namespace, where it belongs, as Acme::Intraweb.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found