in reply to use lib 'http://perlmonks.org/perllib';

You could take the code of Autouse to have an @HTTP_LIB to fetch stuff remotely to bring in. However, caching it locally is surely a security hole. You might take a tactic like Inline to create a per-user cache.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: use lib 'http://perlmonks.org/perllib';

Replies are listed 'Best First'.
RE: Re: use lib 'http://perlmonks.org/perllib';
by Rudif (Hermit) on Sep 16, 2000 at 22:59 UTC
    Inline looks interesting. Does it live up to what it promises? Rudif

      One big (for some) problem with Inline.pm is that it requires a working XS system. I really think this is the right way to do things, but it means that Inline won't work unless MakeMaker is working and you have a C compiler. If you compiled your own copy of Perl (as intended), then this should be no problem for you and Inline appears to kick arse (for one thing, I can tell just from reading the documentation that the authors knew what they were doing).

      But there is a huge audience of Perl users who don't necessarilly have a C compiler and, even if they do, they have to do extra work to get MakeMaker working. These are people who download binary Perl distributions for platforms with poor standardization. Most notably, Win32 users are unlikely to be able to use Inline.pm.

              - tye (but my friends call me "Tye")

        Actually I have to add my vote to Tye here. I run a number of webservers with Perl/mod_perl/Apache and when I leave them outside a firewall, I tend to rip the "C" compiler off the box when done setting it up. And gas and such to. I do infact sometimes compile and develop on a hidden matching box and just move the minimal per-compiled code up.

        Of course, in those cases I'll just have to live without Inline.pm but I do hope it doesn't become fashionable to use in general purpose modules.

        --
        $you = new YOU;
        honk() if $you->love(perl)

        Most notably, Win32 users are unlikely to be able to use Inline.pm.
        I wouldn't be so quick to jump to this. I've been told the standard MakeMaker and XS stuff works just fine under Windows, provided you have a decent C compiler.

        -- Randal L. Schwartz, Perl hacker