PERL5LIB is no choice, since there would be the same issue of how to write 
paths a cross-platform way.

> Both those methods assume that the path to the directory where the 
> program resides equals the current working directory. That's often the 
> case, but not always.

Isn't the "working directory" always the path where the program executes from ? 
If not, how can I get the path of the directory my software resides in ?

> Some would suggest the use of the FindBin module. It does the right 
> thing, but unfortunately it is known to be buggy.

You refer to this: http://search.cpan.org/~tty/kurila-1.11_0/lib/FindBin.pm ?

At first glance it would be exactly what I'm looking for... but since you say 
it's buggy... I would need to rely upon that.

> In a similar case I chose to simply say
> 
>      use lib 'libraries';
> 
> and tell the users to manually change 'libraries' to the full path when 
> necessary.

Since it will be a CGI app for webmasters, I guess that very few users have an 
idea how to do this (ideally the program should be "self-configuring" without 
the need of editing config files).

Maybe there is an other hint ?

Tobias.



> 
> -- 
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/



      __________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to