in reply to Re: does not write to file anymore
in thread does not write to file anymore

Ok,

I put the code in

close F or die "Close $!\n";

And it died at this point. How do I check the $! ???

thanks

Replies are listed 'Best First'.
Re^3: does not write to file anymore
by tachyon (Chancellor) on Nov 05, 2004 at 01:12 UTC

    That statement should print whatever is in $! and $! should be set if the close fails. Have you checked to see if your disk is full? On *nix type df. If you have disk space try (on the command line)

    echo testing > somefile cat somefile

    Does that work?

    As well as checking disk free with df check quotas with quota

    quota your_username quota nobody quota apache
      ok

      I hadn't checked the disk space cause I was able to continue modifing the cgi file, and normally when I'm out of space I can't do that. But I decided to check it just in case. And voila! I'm out of space.

      Thank you oh so very much!