in reply to Require files

I suspect that header.cgi is 66 lines long. Perl require demands that the file it loads return a true value to signify success. Try appending this to the end of header.cgi: 1; and see if that doesn't fix the problem.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: Require files
by coldfingertips (Pilgrim) on Jan 10, 2005 at 07:35 UTC
    Okay, I added 1; to the last line of all the files I'm requiring and it didn't change. The compilation error is still present.

    Any other suggestions?

    Thanks!

      It doesn't seem likely, but do you have a return; or return 0; statement somewhere outside a sub definition in the required file?

      It would help save wear and tear on my guesser if you showed us the file. Particularly, line 66 and prior.

      After Compline,
      Zaxo