From: Clemens Hintze Date: 2000-03-24T16:27:21+01:00 Subject: [ruby-talk:02135] Re: Question the sequence in $: Yukihiro Matsumoto writes: > Hi, > > In message "[ruby-talk:02129] Question the sequence in $:" > on 00/03/24, Clemens Hintze writes: ... > |I think everywhere the sequence should be: > | > | local -> site -> system > | > |Other opinions? > > I think relative path is too dangerous. BTW, the sequence in the > Perl's load path is reversed somehow. Damned! I have written to quickly, indeed. I have not thought about security at all! *Blush* Once again a situation arose that let me dig a hole and jump into it... > > |And while thinking about this, I have another proposal. How about to > |include the directory from where the program was started into the load > |path too? That would enable me to put my application with its support > |libs into an own subdirectory and after starting, the load path would > |already contain this directory too! So its support libs could easily > |be required too. But this should only happen, of course, if $0 is not > |'-' or '-e'. > > I can understand you. But `$0' path is not portable. Does that mean you like the idea, but there are problems with recognizing the correct '$0' value? > matz. \cle -- Clemens Hintze mailto: c.hintze@gmx.net