chriso has asked for the wisdom of the Perl Monks concerning the following question:
After I removed the (), the server no longer reboots, but it never executes the WHILE statement because the print statement, "Start of while loop", I inserted to see if the loop is accessed never gets printed. I do not get the "error" message as if the file could not be found or opened, and the statement, "$file has been opened" does get printed correctly.open (FILE, "243q1_13.txt") || die "Cannot open $file: $!";
I also deleted the file to be accessed from the directory and the script did not give me an error message so it appears that the script is ignoring the open statement.
This script ran fine on a Netware 5.1 server running Novell Enterprise Server, but I've had a lot of trouble running it on Apache2. Does anyone have any ideas?
Thanks for your help.
print "<H2>Hello $fullname!</H2><P>"; print start_form (-name=>'makequiz', -method=>'POST', -action=>"http:/ +/ist221.nsm.tridenttech.edu/perl/gradequiz.cgi"); open FILE, "243q1_13.txt" || die "Cannot open $file: $!"; print "$file has been opened<p>"; while (<FILE>) { # ** READS EACH LINE OF TEXT FROM FILE print "Start of while loop<p>";
janitored by ybiC: Retitle from less-than-descriptive "Why doesn't this work?", for better site-search results
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Apache 2, Perl 5.8.0, Netware 6.5 server reboots
by trammell (Priest) on Jun 29, 2005 at 15:04 UTC | |
|
Re: Apache 2, Perl 5.8.0, Netware 6.5 server reboots
by Transient (Hermit) on Jun 29, 2005 at 15:00 UTC | |
|
Re: Apache 2, Perl 5.8.0, Netware 6.5 server reboots
by friedo (Prior) on Jun 29, 2005 at 15:02 UTC | |
|
Re: Apache 2, Perl 5.8.0, Netware 6.5 server reboots
by chriso (Sexton) on Jun 29, 2005 at 16:23 UTC | |
by diotalevi (Canon) on Jun 29, 2005 at 17:07 UTC | |
by chriso (Sexton) on Jun 30, 2005 at 15:47 UTC | |
|
Re: Apache 2, Perl 5.8.0, Netware 6.5 server reboots
by ybiC (Prior) on Jun 30, 2005 at 14:50 UTC |