Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: A Home For Perl Modules

by raptnor2 (Beadle)
on Oct 21, 2004 at 01:34 UTC ( #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
Node Status?
node history
Node Type: note [id://401032]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2018-07-16 03:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (330 votes). Check out past polls.

    Notices?