<p>Off topic but... Interesting choice of delimiters...<br>
</p>
<div class="gmail_quote">On Feb 17, 2011 2:42 PM, "Matthew Bustad" <<a href="mailto:mybustad@gmail.com">mybustad@gmail.com</a>> wrote:<br type="attribution">> Here is a puzzle:<br>> <br>> Setting up gitweb on CentOS 5.5<br>
> <br>> In the script segment:<br>> ---8<---Start---8<------8<------8<------8<------8<------8<------8<------8<---<br>> #!/usr/bin/perl<br>> <br>> # gitweb - simple web interface to track changes in git repositories<br>
> #<br>> # (C) 2005-2006, Kay Sievers <<a href="mailto:kay.sievers@vrfy.org">kay.sievers@vrfy.org</a>><br>> # (C) 2005, Christian Gierke<br>> #<br>> # This program is licensed under the GPLv2<br>> <br>
> open(O, ">>/tmp/fo");<br>> <br>> use 5.008;<br>> use strict;<br>> use warnings;<br>> use CGI qw(:standard :escapeHTML -nosticky);<br>> use CGI::Util qw(unescape);<br>> use CGI::Carp qw(fatalsToBrowser set_message);<br>
> use Encode;<br>> use Fcntl ':mode';<br>> use File::Find qw();<br>> use File::Basename qw(basename);<br>> use Time::HiRes qw(gettimeofday tv_interval);<br>> binmode STDOUT, ':utf8';<br>> <br>
> .<br>> .<br>> .<br>> my $projects_list = "/pub/git";<br>> printf(O "--\n%s-\n", $projects_list ); # debug printfs to<br>> isolate the error<br>> if (-d $projects_list) {<br>
> printf(O "--\n%s-\n", $projects_list ); # debug printfs to<br>> isolate the error<br>> ---8<--- End ---8<------8<------8<------8<------8<------8<------8<------8<---<br>
> <br>> The -d test of if /pub/git is a directory (it is) fails via cgi, but<br>> (as user apache)<br>> works via command line?<br>> <br>> Any ideas?<br>> <br>> -- Matthew<br>> _____________________________________________________________<br>
> Seattle Perl Users Group Mailing List<br>> POST TO: <a href="mailto:spug-list@pm.org">spug-list@pm.org</a><br>> SUBSCRIPTION: <a href="http://mail.pm.org/mailman/listinfo/spug-list">http://mail.pm.org/mailman/listinfo/spug-list</a><br>
> MEETINGS: 3rd Tuesdays<br>> WEB PAGE: <a href="http://seattleperl.org/">http://seattleperl.org/</a><br></div>