Re: Load modules from internet
by Abigail-II (Bishop) on Aug 02, 2002 at 14:28 UTC
|
That's already done. There's my The::Net
module that allows you to do require "http://www.example.com/some/module.pm";
but I've also seen code on P5P that connects to CPAN.
It's probably on CPAN someplace.
I do not know what you mean by "It would be easiest if it
would not be from CPAN's .tar.gz files".
Now, just because it's possible doesn't mean I think it's a
good thing to do. I find it scary enough to download something
from CPAN and to actually install it, I do not want a program
to do that automatically. And I certainly don't want to give
such programs write access to /opt/perl/lib/site_perl.
Abigail | [reply] [d/l] [select] |
Re: Load modules from internet
by perrin (Chancellor) on Aug 02, 2002 at 14:34 UTC
|
Hey, that would be great! Then I can put up a module called Business::VerifyBankAccount. Once people start using it, I'll replace it with code that transfers all your money to my account and then reformats your hard drive. Since everyone will just be blindly installing and running whatever code I provide, they'll never know the difference! Oh yeah baby, this is gonna rock! I can finally stop sending all those Nigerian scam mailings. | [reply] |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Re: Load modules from internet
by dada (Chaplain) on Aug 02, 2002 at 14:26 UTC
|
Juerd wrote a neat trick about this. but...
And it would be eaiest if it would not be from CPAN's .tar.gz files with a lot of other files.
you're asking too much here.
cheers,
Aldo
__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;
| [reply] [d/l] |
Re: Load modules from internet
by simeon2000 (Monk) on Aug 02, 2002 at 15:28 UTC
|
This is a terribly Bad Thing(tm) if not done properly. Proper p|gpg and MD5'ing would have to take place. Plus... IIRC, perl is NOT system independent bytecode, so the module would have to be compiled before it could be run, and that would take a lot of extra time. Plus lots of perl modules are NOT written portably.
The more I think about it, the more I think that this is a Very Bad Idea(tm) for perl.
--
perl -e "print qq/just another perl hacker who doesn't grok japh\n/" | [reply] [d/l] |
Re: Load modules from internet
by Jaap (Curate) on Aug 02, 2002 at 15:10 UTC
|
Hmmm so it is possible and it has been done. Good. BTW the modules don't have to be installed by default, just downloaded and put in memory or in the current directory.
If the Modules were managed by a trusted party (that checks the modules for security things), it could well work.
If Sun can do it with Java, so can we. It would also save people a lot of trouble installing the modules.
I do sense however that most of you think it is a great security risk.
| [reply] |
|
| [reply] |
Re: Load modules from internet
by Biker (Priest) on Aug 02, 2002 at 15:14 UTC
|
If the security aspect could be solved (which I doubt) there would still exist a problem for off-line installations. Far from all computers are connected to the 'Net.
Everything went worng, just as foreseen.
| [reply] |
|
Well, you wouldn't HAVE to use this, you just could if you wanted. The traditional methods still work of course.
| [reply] |