I am using Apache2 on a Netware 6.5 server. At first, I had problems in that my server would reboot when I executed the following command:
open (FILE, "243q1_13.txt") || die "Cannot open $file: $!";
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.

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


In reply to Apache 2, Perl 5.8.0, Netware 6.5 server reboots by chriso

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.