in reply to Strange File Not Found Error

My guess, in a word, would be permissions. The webserver is probably running as the "nobody" user or equivalent, which has very few privileges. Make sure that the w.stat file is chmod'd so as to be world-readable. The easiest way to do this is:

chmod +r w.stat

Update: As xphase_work states, $! normally spits out the more useful "Permission Denied" message in such cases. And FourPlay assures me that the directories and file in question are readable. $Chmrr->bark("wrong tree"); Perhaps the distinguished AM is on the right track?

Update 2: Looks like the most excellent tye found the problem. Give the man a ++!

 
perl -e 'print "I love $^X$\"$]!$/"#$&V"+@( NO CARRIER'

Replies are listed 'Best First'.
Re: Re: Strange File Not Found Error
by xphase_work (Pilgrim) on Jun 14, 2001 at 23:06 UTC
    I thought that was the problem, but I checked on my Solaris 2.7 system, and $! for perl 5.6 gives a Permission Denied error if the permissions are wrong. Is that just my system?

    -xPhase

      Possibly so, or it's possible I just stuck my foot in my mouth. It's still the first thing I'd check.

       
      perl -e 'print "I love $^X$\"$]!$/"#$&V"+@( NO CARRIER'

Re: Re: Strange File Not Found Error
by FouRPlaY (Monk) on Jun 14, 2001 at 23:15 UTC
    Excellent thought. I forgot to mention that I tried not only the file, but each directory leading up to it. There all world readable.



    FouRPlaY
    Learning Perl or Going To die() Trying