From: Ævar Arnfjörð Bjarmason Date: Tue, 13 Jul 2010 22:30:42 GMT Subject: Re: [PATCHv2/RFC] gitweb: Prepare for splitting gitweb Message-ID: In-Reply-To: <201007140024.58446.jnareb@gmail.com> On Tue, Jul 13, 2010 at 22:24, Jakub Narebski wrote: > I wrote simple script that tests result of __DIR__ and $FindBin::Bin. > For cgi-bin / mod_cgi it was: > >  __DIR__       = /var/www/cgi-bin/gitweb (symlink to /home/local/gitweb) >  $FindBin::Bin = /home/local/gitweb > > For mod_perl (ModPerl::Registry handler) it was > >  __DIR__       = /var/www/perl/gitweb (symlink to /home/local/gitweb) >  $FindBin::Bin = / > > As you can see it's useless.  I have't checked the FastCGI case... Thanks for spending time researching what was an offhand ignorant "hey wasn't .." comment. Also, sorry :) But that's very informative. Good to know that FindBin is broken like that under mod_perl.