in reply to Re^5: Sorry.. Same problem but some progress!
in thread Sorry.. Same problem but some progress!

OK I tried using the full path and it I get the exact same error as before:

Wed Jun 26 07:15:20.700622 2019] [cgi:error] [pid 14444:tid 1836] [cli +ent ::1:56842] AH01215: BEGIN failed--compilation aborted at C:/Apach +e24/htdocs/choo/cgi-bin/ua/main.pl line 20.\r: C:/Apache24/htdocs/cho +o/cgi-bin/ua/main.pl [Wed Jun 26 07:16:13.581363 2019] [cgi:error] [pid 14444:tid 1832] [cl +ient ::1:56852] End of script output before headers: main.pl [Wed Jun 26 07:16:13.581363 2019] [cgi:error] [pid 14444:tid 1832] [cl +ient ::1:56852] AH01215: Can't locate variables/variables.cgi in @INC + (@INC contains: C:/strawberry/perl/site/lib/MSWin32-x64-multi-thread + C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawbe +rry/perl/lib) at C:/strawberry/perl/site/lib/UltimateAuction.pm line +44.\r: C:/Apache24/htdocs/choo/cgi-bin/ua/main.pl [Wed Jun 26 07:16:13.581363 2019] [cgi:error] [pid 14444:tid 1832] [cl +ient ::1:56852] AH01215: Compilation failed in require at C:/Apache24 +/htdocs/choo/cgi-bin/ua/main.pl line 20.\r: C:/Apache24/htdocs/choo/c +gi-bin/ua/main.pl [Wed Jun 26 07:16:13.581363 2019] [cgi:error] [pid 14444:tid 1832] [cl +ient ::1:56852] AH01215: BEGIN failed--compilation aborted at C:/Apac +he24/htdocs/choo/cgi-bin/ua/main.pl line 20.\r: C:/Apache24/htdocs/ch +oo/cgi-bin/ua/main.pl
No matter what I change the path to, it comes back in the error as variables/variables.cgi. The error doesn't change. Could this be some sort of a compilation problem? I don't have a clue how to compile script in perl and it looks like that should happen automatically in this case?

Thanks again for any help in resolving this.

One other question. I'm not that familiar with perlmonk. Once you go off the first page in the question section should you just continue to ask questions within that thread or should you start another new topic of the same question to be seen?

2019-07-01 Athanasius added code tags

Replies are listed 'Best First'.
Re^7: Sorry.. Same problem but some progress!
by marto (Cardinal) on Jun 26, 2019 at 11:39 UTC

    "Once you go off the first page in the question section should you just continue to ask questions within that thread or should you start another new topic of the same question to be seen?"

    Keep replying to your existing thread, we see these in various ways, Newest Nodes etc. Also, as has been mentioned several times and on the page each time you post:

    • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Re^7: Sorry.. Same problem but some progress!
by bliako (Abbot) on Jun 26, 2019 at 11:56 UTC

    Could it be that you made changes in another file/location? Perl can't possibly invent variables/variables.cgi if you specified a full path. Just to be clear, the error you cite can be eliminated by changing line 44 of C:/strawberry/perl/site/lib/UltimateAuction.pm to a full path. And since you are there put a comment that this needs changing whenever you relocate your code.

    Or use this method Re^7: Sorry.. Same problem but some progress! and Re^7: Sorry.. Same problem but some progress! to do it once and for all. Caveat: I hope Apache takes that variable into consideration when spawning your scripts.