Based on your information, I'd say this line is the culprit:

open(TEMPFILE,">$tempfile") || die "Can't find this temporary file what is wrong. \n";

This basically says, open $tempfile for (over)writing, or stop (die). The error message is not very helpful though, for I bet it's a file permissions problem ;) $tempfile is defined as:

$tempfile="c:\\webserver\\osarr.org\\www\\member\\bboard\\bb.html";

And later on I read:

rename("$tempfile", "$bbfile");

So, basically, your script opens a file ($tempfile), writes something to it, and renames it to $bbfile. After that, (when the script runs again) $tempfile is gone (you already renamed it) so Perl tries to make a new file, which probably fails due to the lack of permissions. Make sure that the user under which the web-server runs, has write permissions in c:\webserver\osarr.org\www\member\bboard\

To double check this permissions problem, you might want to change the not-so-helpful error message into something like:

open(TEMPFILE,">$tempfile") || die("Can't open $tempfile: $!");

HTH

--
b10m

All code is usually tested, but rarely trusted.

In reply to Re: Having trouble with a Discussion Board by b10m
in thread Having trouble with a Discussion Board by Ineedhelpplease

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.