perl - Why isn't require("filename") working? -
I inherited some of the Perl code that runs on the Linux server only. I'm in the process of running it on Windows XP, ActiveState Perl 5.16.2, and a BitTime WAMP stack. (Note: this setup is already running on my Perl.GG program, so it's a working setup.)
Anyway, "Main" Perl program - let's call it main.cgi - this Statement is: / P>
is required ("extra / stuff_1.cgi"); When main.cgi runs, an error occurs:
c: / bitmap / sin2 / cgi-bin / extra / stuff_1 .cgi did not come back true value in C: / bitman / sin2 / cgi-bin / main.cgi line xx Now what's strange: ending with stuff_1.cgi 1 it happens; (I.e., this is the last line of the file)!
I have also commented on code in functions within stuff_1.cgi - which works with most documents, eg.
sub-func {return & Lt; EOF; ... EOF} Add it to the bus
sub joke # # layer & lt; & Lt; EOF; # ... #EOF} etc.
And still "do not return the right value" is still there!
However, I delete all the code so that in stuff_1.cgi
1; The error goes away (as it should be).
/ Code>
ETA: If I copy the contents of stuff_1.cgi and past it into main .cgi (the requires statement), the code works fine is. I have not seen anything like this before; What could be the reason?
Why is not Debugger working (ActiveState or Strawberry Pearl under Windows)?
A bug that breaks EPIC's debugger frontend. Typical symptom is the error message "perl5db.pl did not return the correct value." - To view this message, you must enable "Debugger Console" in EPIC preferences. Also, if you have this problem, debugging does not work at all. To fix this, you will need to edit CWD.pm of your Perl distribution and remove the offending "eval" keyword from one line as described in this bug report. Do not try to fix Pearl's "Lib" directory in the path of your project, because all breakpoints will not be taken care of.
Comments
Post a Comment