in reply to CGI Uploads, again!

use strict; isn't something to tack on after a script is finished, it should be one of the first things you type. It makes debugging everything much easier, especially in the case of misused/mistyped variables.

That being said, perhaps this node would be a help to you.

Are you sure that your permissions on the directory you're trying to write to are correct? This is a major source of confusion for folks oftentimes.

-Any sufficiently advanced technology is
indistinguishable from doubletalk.

Replies are listed 'Best First'.
Re: Re: CGI Uploads, again!
by michellem (Friar) on Oct 15, 2001 at 18:54 UTC
    I virtually always use strict as a matter of course. This was an exception to my usual rule, because I knew beforehand that strict would complain about using a string as a filehandle.

    Also, this is only a small part of the whole application - yes, all of the permissions are set correctly.

      I've gotten that error before when my HTML form wasn't set up correctly. View the source of your form after it prints and make sure the form tag has the type="multipart/form-data" in it. I know you are using CGI and its supposed to that but make sure because the errors you are describing point that direction.
        Yup. The form tag reads: enctype="multipart/form-data". Sigh.