ilia
asked on
"require" on Win95 with WebSite2.3a
Hello, I am having a problem with using the require command in Perl,
and cannot solve it. I would very much appreciate if someone could
help me.
I have 3 files called config.pl, webbbs.pl and webbbs_text.pl in the
folder C:\WWW\LR2\ The first lines in config.pl are as follows:
require "./webbbs.pl"; require "./webbbs_text.pl";
This doesn't work!! That is, when i run config.pl from the browser
through localhost on WebSite2.3a, I get a 500 Server Error (CGI
output from C:/WWW/LR2/config.pl contained no blank line separating
header and data), and yet, all the scripts compile with no errors
using the Perl Interpreter in DOS.
That is why i suspect that something is wrong with requre.
Also, i have tried require "C:\\WWW\\LR2\\webbbs.pl"; to no avail.
Please help.
Thank you,
Ilia.
and cannot solve it. I would very much appreciate if someone could
help me.
I have 3 files called config.pl, webbbs.pl and webbbs_text.pl in the
folder C:\WWW\LR2\ The first lines in config.pl are as follows:
require "./webbbs.pl"; require "./webbbs_text.pl";
This doesn't work!! That is, when i run config.pl from the browser
through localhost on WebSite2.3a, I get a 500 Server Error (CGI
output from C:/WWW/LR2/config.pl contained no blank line separating
header and data), and yet, all the scripts compile with no errors
using the Perl Interpreter in DOS.
That is why i suspect that something is wrong with requre.
Also, i have tried require "C:\\WWW\\LR2\\webbbs.pl";
Please help.
Thank you,
Ilia.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I wish you hadn't accepted the answer. Perhaps I didn't read the
question fully enough. Could you please show the EXACT output of the
script when you run it from a command line (DOS)?
question fully enough. Could you please show the EXACT output of the
script when you run it from a command line (DOS)?
ASKER
Sorry but i think i fixed the problem already.
thanks again. your chdir suggestion was useful anyhow. i didn't know of this command
thanks again. your chdir suggestion was useful anyhow. i didn't know of this command
ASKER