in reply to Re^3: SQLite + free web hosting?
in thread SQLite + free web hosting?

They already allow you to run arbitrary programs, so I'm not sure what you have in mind.


I really have no experience with web servers, so I may be talking nonsense, but if I owned one, I believe I would give no permissions for outsiders to write in any directories under perl's. Isn't that the case?

Thanks,

VMat

Replies are listed 'Best First'.
Re^5: SQLite + free web hosting?
by ikegami (Patriarch) on Apr 13, 2009 at 20:52 UTC
    Noone said anything about writing in the directories under perl's. Perl modules can be installed in any directory.
      OK, I think I'm getting your point (again, I apologize if I missed the basic classes).

      If I put the binaries in my own directory in the web server, how can I make perl "see" them? Do I need to change @INC?

      Thanks again,

      Vini

        Yup. You can adjust @INC by using env var PERL5LIB or by using the lib module.

        For example, to install a module, I do

        perl Makefile.PL PREFIX=~ LIB=~/lib/perl5 make make test make install
        and I have the following in my ~/.bash_profile
        export PERL5LIB=~/lib/perl5

        But you can use lib in your script instead of using PERL5LIB.

        If it's a Windows host, you just grab a ppd file, unzip it (I think) and use use lib.