http://www.perlmonks.org?node_id=21335


in reply to Out of a hole?

May be i do not understand your needs, but would $ENV{'DOCUMENT_ROOT'} help you?
/Maqs.

Replies are listed 'Best First'.
RE: Re: Out of a hole?
by cwest (Friar) on Jul 06, 2000 at 21:33 UTC
    No, you don't understand the need. Your solution revolves around a CGIish type solution. This question said nothing about that.
    --
    Casey
    
RE: Re: Out of a hole?
by Intrepid (Deacon) on Jul 06, 2000 at 22:36 UTC
    Maqs wrote:
    May be i do not understand your needs, but would
    $ENV{'DOCUMENT_ROOT'} help you?

    Mea Culpa, bigtime. Maqs is right (and nobody else is wrong but me). I am working (as described in a little more detail in my reply to ZZamboni's reply) on a CGI situation. Bingo. I should have remembered to say so!

    So, none of the other solutions posted here will apply to this immediate situation. Because it's a strictly limited free server with no shell access, I cannot run non-Perl system commands nor will a lot of Perl things we take for granted work (like eval ..). Furthermore, installing user modules to this Tripod user space is somewhat problematic too (I have done so other places, know all about use lib `foo' and so on, thanks). Furthermore I have a terribly limited subset of the "normal" ENV variables defined for me there too. It's OK, I kind of like the challenges of working with such limitations ... presents a challenge that warms my hacker's heart ;).

    I ramble. Anyway I am not going to be able to reply to everyone who posted a reply, please let me get away with a blanket "thanks" to all.

    Intrepid